Re: [JAVA3D] blending two textures using an alpha mask

2003-05-29 Thread David Yazel
Here is example code on how to blend two textures together using an alphamask.   We use this technique for terrain.   Here is a pic on how it looks at runtime:   http://www.magicosm.net/screenshots/cosm833.jpg   http://www.magicosm.net/screenshots/cosm936.jpg   http://www.magicosm.net/screens

Re: [JAVA3D] 3D Studio MAX

2003-05-29 Thread andrei
Martin Frey wrote: download the obj-file exporter and load these objfiles. it works great and they works with textures and so on. greetz Martin hello list, what loaders for 3DS and DXF files do you like more? I need to build several classes for objects that are external files. So, when an objec

Re: [JAVA3D] Display problem using Java3D 1.3

2003-05-29 Thread Kevin Glass
Ah, I mis-understood what you meant by the zooming, just to clarify, you're saying its actually dependant on the _ammount_ that you zoom in? Clipping might effect this, but only if you had two piece of geometry in the same place (one green, one red) and one gets clipped as the front plane hits it?

Re: [JAVA3D] Display problem using Java3D 1.3

2003-05-29 Thread Raghavendra R
Hi Kevin, I tried setting the view transforms but couldn't resolve this issue.Will the Back / Front ratio affect display changes? My observations are that if i zoom out to quite a large extent the color change appears and on zooming in, the color change disappears and turns to the original col

Re: [JAVA3D] Display problem using Java3D 1.3

2003-05-29 Thread Kevin Glass
> Hi, > > I am actually changing the Color of the Appearance Material of the > Shape3D containing the LineArray. How do i reset the view to the same > view after picking. The Picking process is transfered to my update( ) > method wherein i am changing the color. > Transform3D view = new Transfom3D

Re: [JAVA3D] Display problem using Java3D 1.3

2003-05-29 Thread Raghavendra R
Hi, I am actually changing the Color of the Appearance Material of the Shape3D containing the LineArray. How do i reset the view to the same view after picking. The Picking process is transfered to my update( ) method wherein i am changing the color. Also, how is it that the color change gets

Re: [JAVA3D] Display problem using Java3D 1.3

2003-05-29 Thread Kevin Glass
Is your scene actually being refreshed after the pick? I'm not sure changing the color of an entity will force a refresh? Try resetting your view to the same view directly after your pick. This should force a refresh. Kev > Hi, > > I have an application wherein i draw a set of lines (LineArray)

[JAVA3D] Display problem using Java3D 1.3

2003-05-29 Thread Raghavendra R
Hi, I have an application wherein i draw a set of lines (LineArray) in Green color initially. Further, when i pick this line and change its color to Red, it doesnt get displayed in Red. Only when i zoom the window, the color change can be seen. I am getting this problem after switching from JRE 1

Re: [JAVA3D] blending two textures using an alpha mask

2003-05-29 Thread Kevin Glass
1) You could use multi-texturing, but I've never seen this work particularly well. (look at the javadoc for TextureUnitState) 2) You could draw 2 polygons very slightly apart with a single texture on each using standard transparency. 3) If the amount of alpha isn't going to vary at runtime you co

[JAVA3D] blending two textures using an alpha mask

2003-05-29 Thread Martin Traverso
Hi, I'd like to render two textures on a surface using an alpha mask to specify what portions of the lower texture should show through and blend with the top texture. The alpha mask and, if possible, its texture coordinates should be modifiable at runtime. Any thoughts on how I may be able to ach

Re: [JAVA3D] Link/SharedGroup behaviour in addBranchGraph()

2003-05-29 Thread Kelvin Chung
Chetan Chauhan wrote: Hello, When using Link/SharedGroup, I noticed that while adding branch graph, the 'setLive()' for a SharedGroup is called as many times as the number of Links pointing to this SharedGroup. For example: I have one SharedGroup contaning 100 Shape3Ds and there are 200 Links p