Horde3D

Next-Generation Graphics Engine
It is currently 28.03.2024, 10:38

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: 04.09.2013, 03:55 
Offline

Joined: 30.08.2013, 05:33
Posts: 1
Hi!

I've been developing an eclipse plugin(with a java binding to horde) to visualize the movement of robots which are attached to a robotics API. When I tested my application on Linux, I observed strange behaviour of the model transformation: Rotation, Position and Scale of each Mesh were always a rounded number after I used the addNodes function. Also the Material uniform color was always black.
After several hours I found out, that when e.g. a material was loaded, its uniform rgba values were always 0. When I looked at the egMaterial class, the atof function caught my attention and then I stumbled upon this thread:
https://www.allegro.cc/forums/thread/600366/813300
So the case was here that e.g. the value 0.3 was converted to a 0 because the dot was not interpreted as part of a decimal number
I solved the problem simply by setting the locale as described in the thread inside the egMain class once.
Maybe it's a java specific problem... but I wanted to let you know anyway :)

Greetings


Top
 Profile  
Reply with quote  
PostPosted: 05.09.2013, 19:42 
Offline
Tool Developer

Joined: 13.11.2007, 11:07
Posts: 1150
Location: Germany
I stumbled across that problem myself some days ago. Not sure if Horde should change the locale itself, as it may disturb the application's default behaviour.


Top
 Profile  
Reply with quote  
PostPosted: 09.09.2013, 14:16 
Offline

Joined: 08.01.2008, 14:57
Posts: 66
As suggested at the end of the previous link, maybe this can be the solution:

http://www.cplusplus.com/reference/ios/ios/imbue/


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 26 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group