Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (ozgur, TipmyPip, AndrewAMD), 1,209 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
obje_ReplaceObj wont work #378957
07/28/11 11:27
07/28/11 11:27
Joined: Oct 2006
Posts: 23
Turkey
_cash_ Offline OP
Newbie
_cash_  Offline OP
Newbie

Joined: Oct 2006
Posts: 23
Turkey
gp_WedInterface->object_SelectObjectID(nesneid);

CObjEditInterface * oei=gp_WedInterface->object_GetEditInterfaceID(nesneid);

MODELINFO mi;
oei->obje_GetInfo(&mi);

mi.Ambient=10;

oei->obje_ReplaceObj(&mi);

///////////////////////////////////
obje_ReplaceObj not run, object ambient not change. why?

please help

Re: obje_ReplaceObj wont work [Re: _cash_] #378973
07/28/11 13:09
07/28/11 13:09
Joined: Jul 2000
Posts: 27,986
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,986
Frankfurt
Wladimir is in vacation at the moment, but he'll look into the 3 reported issues when he's back.

Re: obje_ReplaceObj wont work [Re: jcl] #378979
07/28/11 13:43
07/28/11 13:43
Joined: Oct 2006
Posts: 23
Turkey
_cash_ Offline OP
Newbie
_cash_  Offline OP
Newbie

Joined: Oct 2006
Posts: 23
Turkey
ok, and say this to wladimir too.

if i delete object and create again some parameters
can be change but some cant.
for example:
///////////
gp_WedInterface->object_SelectObjectID(nesneid);

CObjEditInterface * oei=gp_WedInterface->object_GetEditInterfaceID(nesneid);

MODELINFO mi;
oei->obje_GetInfo(&mi);

mi.Ambient=10;

OBJECTTRANS ot;
VECTOR3_STC pos1;

oei->obje_GetTrans(&ot,true);
oei->obje_GetPosition((float*)&pos1,true);

oei->obje_Delete(); //delete object

if (oei->obje_AppendNewObj(pos1,&mi)) //old pos correctly get. and ambient chage
{
oei->obje_SetTrans(&ot,true); //but trans data not change!!!
}
///////////////////////

this code create object in same pos and scale but rotation is clear why?

and last 3 (BBox,Polygon,Local) flags are lost. why?

and how can i read FLARE flag in script?

and how can i change object name?

i have lots of question. if wladimir solve those, i ask another.

sorry for bad english and sorry for disturbing


Moderated by  old_bill, Tobias 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1