Sorry about that, my mistake.  Render doesn't, because we don't do
off-screen OpenGL rendering.  Display does, however.  Edit
TextureMapOpenGL.  Add the "rendering mode" "hardware" attribute to the
object being passed into Image, and pass the result and the camera produced
by Image, to Display.    It'll come up texture mapped.

Greg

Randall Hopper <[EMAIL PROTECTED]>@opendx.watson.ibm.com on 03/14/2002
01:10:18 PM

Please respond to [email protected]

Sent by:    [EMAIL PROTECTED]


To:    [email protected]
cc:
Subject:    [opendx-users] Re: Re: Saving HW-rendered images



Gregory D Abram:
 |Actually, Render does support hardware rendering.  Use Options(...,
 |"rendering mode", "hardware")
 |on the object just before passing it to Render.

I tried that here, and it didn't work.

To recheck this, I just pulled up the TextureMapOpenGL.net demo, and after
verifying it renders with texture using Image, I added "rendering mode" to
the Options module, and piped that into Render -> Display.  No texture.
Just a white shaded surface.

Here's what the header of the field looks like right before Render.

Randy

==============================================================================

object 2 class gridpositions counts 256 256
 origin             0             0
 delta              0             1
 delta              1             0
attribute "dep" string "positions"
#
object 3 class gridconnections counts 256 256
attribute "element type" string "quads"
attribute "dep" string "connections"
attribute "ref" string "positions"
#
object 4 class array type float rank 1 shape 3 items 256 msb ieee data 0
#
object 5 class array type unsigned byte rank 0 items 65536 msb ieee data
3072
attribute "ref" string "color map"
attribute "dep" string "positions"
#
object 1 class field
component "positions" value 2
component "connections" value 3
component "color map" value 4
component "colors" value 5
attribute "direct color map" number 1
#
object 6 class array type float rank 1 shape 3 items 441 msb ieee data
68608
attribute "dep" string "positions"
#
object 7 class gridconnections counts 21 21
attribute "element type" string "quads"
attribute "dep" string "connections"
attribute "ref" string "positions"
#
object 8 class array type float rank 0 items 441 msb ieee data 73900
attribute "dep" string "positions"
#
object 9 class array type float rank 1 shape 2 items 441 msb ieee data
75664
attribute "dep" string "positions"
#
object 10 class constantarray type float rank 1 shape 3 items 441 msb ieee
data 79192
attribute "dep" string "positions"
#
object 11 class array type float rank 1 shape 3 items 441 msb ieee data
79204
attribute "dep" string "positions"
#
object "default" class field
component "positions" value 6
component "connections" value 7
component "data" value 8
component "uv" value 9
component "colors" value 10
component "normals" value 11
attribute "marked component" string "positions"
attribute "RubberSheet scale" number 0.707395
attribute "texture" value 1
attribute "texture min filter" string "linear_mipmap_linear"
attribute "texture mag filter" string "linear"
attribute "rendering mode" string "hardware"
#
end
==============================================================================


--
Randall Hopper (mailto:[EMAIL PROTECTED])
Lockheed Martin Operation Support
EPA Scientific Visualization Center
US EPA N127-01; RTP, NC 27711


Reply via email to