ResizeBillboard work?

Everything related to 3D programming
User avatar
minimy
Enthusiast
Enthusiast
Posts: 619
Joined: Mon Jul 08, 2013 8:43 pm
Location: off world

ResizeBillboard work?

Post by minimy »

Hello, when try to resize a billboard give me this error 'error memory address'. Is a bug?

Code: Select all

    bb= CreateBillboardGroup(#PB_Any, MaterialID(mate),10,10)
    AddBillboard(bb,0,0,0)
    ResizeBillboard(0 , bb, 10,10) ; NO WORK (error memory address???)
    
If translation=Error: reply="Sorry, Im Spanish": Endif
User avatar
Demivec
Addict
Addict
Posts: 4267
Joined: Mon Jul 25, 2005 3:51 pm
Location: Utah, USA

Re: ResizeBillboard work?

Post by Demivec »

Code: Select all

Result = AddBillboard(#BillboardGroup, x, y, z)

Return value
The new billboard index. This value can be used to manipulate this specific billboard with the commands which needs one.
What about this change to your non-runnable code sample?

Code: Select all

    bb= CreateBillboardGroup(#PB_Any, MaterialID(mate),10,10)
    Result = AddBillboard(bb,0,0,0)
    ResizeBillboard(Result, bb, 10,10)
    
Post Reply