Search Home Members Contacts
About Us
Products
Downloads
Community
Support
Pages: [1]
  Print  
Author Topic: Problem for using setscale() in VC++6.0  (Read 1281 times)
baiqian
Community Member
*
Posts: 7


« on: December 03, 2007, 03:25:11 AM »

I just modify the Tutorial 10, replace the tank with tiny.x(which model using in VB samples),
And
I add declaration below

ITVActor2 pTinyActor;

and codes below
 //Now, load our model.i have copy tiny.x to media folder
pTinyActor->Load("..\\..\\..\\Media\\tiny.x", "tiny",false,true);
pTinyActor->SetAnimationID(0);
pTinyActor->PlayAnimation(2000);
pTinyActor->SetMaterial(0,-1);
pTinyActor->SetRotation(-90, 130, 0);
pTinyActor->SetScale (0.1, 0.1, 0.1);


When compiling,it prompt setscale parameter truncation from " const double" to "float", and when running, the system prompt" violent operation"

Anyone can help on this issue?
Logged
SylvainTV
Administrator
Community Member
*****
Posts: 4946


WWW
« Reply #1 on: December 03, 2007, 01:58:47 PM »

This is not the good section btw. You're using 6.3 here Smiley (you should really update to 6.5 because it has a much better C++ support)

Quite weird anyway.

Take a look at the debug file generated by the engine, maybe the actor has not been loaded correctly.

As for the Scale thing : you should use 0.1f values to avoid casts.
Logged

Regards

Sylvain Dupont
TrueVision3D Developer
sylvain@truevision3d.com

TV3D IRC at http://chat.truevision3d.com or on server irc.truevision3d.com #Truevision3D. Come talk with us !
baiqian
Community Member
*
Posts: 7


« Reply #2 on: December 06, 2007, 04:14:12 AM »

Thx a lot, i've sovle this proble now. And I will update to TV3D 6.5 for programming.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks