Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Colour Image with BatchShadeOptions

Status
Not open for further replies.

basenxuser

Mechanical
Sep 27, 2007
69
Hello All,

I am trying to achieve a colorful shaded image of display using the following command:(But it is giving monochrome image). Any suggestion will help.

Dim options As New UFDisp.ShadeOptions
options.disable_raytracing = True
options.distribute_excess_light = True
options.facet_quality = 1
options.resolution = 400

options.plot_quality = UFDisp.ShadePlot.PlotFine

options.generate_shadows = False
options.transparent_shadows = False
options.fixed_camera_viewing = False
options.super_sample = 3
options.raytrace_memory = 128
options.subdivision_depth = 6
options.radiosity_quality = 15
options.distribute_excess_light = False
options.use_midpoint_sampling = True

options.format = UFDisp.ShadeFormat.FormatRaster
options.display = UFDisp.ShadeDisplay.DisplayNearestRgb
Dim X_size As Int32 = 640
Dim Y_size As Int32 = 480

theUFSession.Disp.BatchShadeOptions("C:\demo\Images\Test.jpg", X_size, Y_size, UFDisp.ShadeMethod.PhotoReal, options)

Regards,
basenxuser
 
Replies continue below

Recommended for you

This looks to be a "high quality image" (or rendering) type of operation; have you applied materials and/or colors to the bodies to be rendered?

www.nxjournaling.com
 
do you have the license for "high quality image" rendering ?
( the name of the license feature could be "studio_render" .)
If one doesn't have the license when rendering interactively, , NX renders in Phong or if it was goraud , very basic appearance.

Regards,
Tomas



 
Hello All,

Solved the image creation issue by setting the environment variable NX_RTS_IRAY=0.

Regards,
basenxuser
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor