Re: [JAVA3D] Getting my Canvas3D to display without requiring focus...
requestFocus() === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message signoff JAVA3D-INTEREST. For general help, send email to [EMAIL PROTECTED] and include in the body of the message help.
[JAVA3D] TextureUnitStates for terrain rendering
Hi all! I was playing with different parameters for texturing my terrain over weekend, but with no satisfactory results. My idea is to have base layer (grass), and on top of it replace it with alpha blended different texture (snow, for example). In that way I will have a nice transition from grass to snow texture. Below are texture attribures for each TextureUnitState. No matter what parameters I tried, I can't isolate alpha texture to work only on one layer (snow). Is order of states important? What is best I can get are two textures combined (which is OK), but than alpha texture cuts off them both, not only snow (or grass). How could I achieve that? //grass baseTextAtt = new TextureAttributes(); baseTextAtt.setTextureMode(TextureAttributes.REPLACE); //snow mainTextAtt = new TextureAttributes(); mainTextAtt.setTextureMode(TextureAttributes.COMBINE); mainTextAtt.setCombineRgbMode(TextureAttributes.COMBINE_REPLACE); mainTextAtt.setCombineRgbSource(0, TextureAttributes.COMBINE_TEXTURE_COLOR); mainTextAtt.setCombineRgbFunction(0, TextureAttributes.COMBINE_SRC_COLOR); mainTextAtt.setCombineAlphaMode(TextureAttributes.COMBINE_MODULATE); mainTextAtt.setCombineAlphaSource(0, TextureAttributes.COMBINE_PREVIOUS_TEXTURE_UNIT_STATE); mainTextAtt.setCombineAlphaFunction(0, TextureAttributes.COMBINE_SRC_ALPHA); //alpha mask for snow alphaTexAttr = new TextureAttributes(); alphaTexAttr.setTextureMode(TextureAttributes.COMBINE); alphaTexAttr.setCombineRgbMode(TextureAttributes.COMBINE_REPLACE); alphaTexAttr.setCombineRgbSource(0, TextureAttributes.COMBINE_PREVIOUS_TEXTURE_UNIT_STATE); alphaTexAttr.setCombineRgbFunction(0, TextureAttributes.COMBINE_SRC_COLOR); alphaTexAttr.setCombineAlphaMode(TextureAttributes.COMBINE_REPLACE); alphaTexAttr.setCombineAlphaSource(0, TextureAttributes.COMBINE_TEXTURE_COLOR); alphaTexAttr.setCombineAlphaFunction(0, TextureAttributes.COMBINE_SRC_ALPHA); === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message signoff JAVA3D-INTEREST. For general help, send email to [EMAIL PROTECTED] and include in the body of the message help.
Re: [JAVA3D] Getting my Canvas3D to display without requiring focus...
canvas3D.setFocusable(true); canvas3D.requestFocus(); === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message signoff JAVA3D-INTEREST. For general help, send email to [EMAIL PROTECTED] and include in the body of the message help.
Re: [JAVA3D] VRML Material Swapping Question
hmm..maybe this: start a Looping thread which changes the appearance during your pickbehavior is triggered maybe you have to implement a further behavior to manipulate the appeareance during ..isClicked=true... nextClick=false... regards rolf Mark Alexander Friedgan schrieb: Actually no, I am trying to blink an item read when it is clicked. On Mon, 2005-06-13 at 18:50 +0200, [EMAIL PROTECTED] wrote: Mark Alexander Friedgan schrieb: I would like to make a group blink red for example and I've been trying to find a good solution to this. I.e. right now what I have is a choice node which turns on and off wrapping the group, this blinks the objects in or out of existence but i want them instead to blink red, sort of highlight. What is the best way to do this? Mark Friedgan === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message signoff JAVA3D-INTEREST. For general help, send email to [EMAIL PROTECTED] and include in the body of the message help. sounds for a behavior which is triggered when n-frames has passed or a TimeElaplsed criteria so you can define how to change the color of your geometry after x frames were produced respectivly after x ms. regrads rolf === To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message signoff JAVA3D-INTEREST. For general help, send email to [EMAIL PROTECTED] and include in the body of the message help.