instantreality forum
news: Welcome to the instantreality forums!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
January 17, 2018, 02:31:58 am


Login with username, password and session length


Pages: [1]
  Print  
Author Topic: BrowserTexture - wrong mapping?  (Read 2612 times)
Peter_Pig
Newbie
*
Posts: 23


View Profile
« on: November 23, 2010, 10:30:33 pm »

Hello!

trying out the BrowserTexture on my system (Vista 32bit, ATI, IP 2.0.0 20624), I have found that the texture is being mapped kind of "mirrowed" .

Inverting the TextureCoordinate makes the texture appear right, but the
hitTexCoord_changed, fired by a TouchSensor, are following the spin of TextureCoordinates.

That makes me think that, either there is something terribly wrong with my classic VRML, or the BrowserTexture is just receiving a wrong SFImage from the HTML-renderer.

See attached example or open URL with InstantPlayer :

http://www.3d-check.com/ip/texture_test/test.wrl

Regards,

Peter
« Last Edit: November 24, 2010, 07:14:28 pm by Peter_Pig » Logged
yjung
Administrator
Sr. Member
*****
Posts: 260


View Profile
« Reply #1 on: November 24, 2010, 10:38:25 pm »

Hello Peter,

yes, you're right, the generated image is flipped, which is a known bug but not yet fixed since it breaks with a lot of our old demos. Anyway, until this is fixed, you can instead add an additional TextureTransform as workaround under your Appearance like follows:

Code:
...
textureTransform TextureTransform {
scale 1 -1
}
...
Logged
Peter_Pig
Newbie
*
Posts: 23


View Profile
« Reply #2 on: November 24, 2010, 11:30:11 pm »

Thank's a lot.

Your workaround is pretty more easy than my scripted one.

After changing the texCoord to ...

texCoord TextureCoordinate {
         
   point [0 0 , 1 0 , 1 1 , 0 1]
}

... it's also mapping the hitTexCoord perfectly.

http://www.3d-check.com/ip/texture_test/good_one.wrl



Regards,

Peter
« Last Edit: November 24, 2010, 11:53:32 pm by Peter_Pig » Logged
Peter_Pig
Newbie
*
Posts: 23


View Profile
« Reply #3 on: February 25, 2011, 11:42:32 pm »

Hello again,

some time has passed since above postings.

Today I've installed the current InstantPlayer win32 release and it seems like the flipping of the BrowserTexture has been fixed.

BrowserTexture does not need any textureTransform with scale set to 1 -1 anymore.

I don't know how long ago you have fixed it.

My question is : is there a topic in this forum, where new releases are announced and one could have a look at the changes-log? Or is there a newsletter one could subscribe?

Thank you in advance.

Regards,

Peter

Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.15 | SMF © 2011, Simple Machines