[Closed] Bitmap rotated objects
Thanks for your research!
Ive added a script controleur and it works,
awesome.
Thanks a lot for the effort,
Ill send you the result when it will be out of NDA (its a contest).
Best,
Cyrille
We were tasked with animating a wall of small panels at one point. We tried several solutions and finally turned to Bobo for advice. You might find this thread helpful.
http://forums.cgsociety.org/showthread.php?f=98&t=489438&highlight=bitmap+rotation
Neuro69 – I’m missing something witht the script controller. I assigned the rectangle to a node that surrounds my tiles, Assign Node. I assigned thisobj to one of the first tile before arraying it, Assign Node. I have a material assigned to the tiles, bitmap in diffuse slot, planar uvw covering the whole area of tiles.
–Type error: Call needs function or class, got: undefined.
I’m pretty sure this relates to how i assigned the mat variable. I used Assign Controller and assigned it to the bitmap map.
-- Error occurred in anonymous codeblock
-- Frame:
-- f: 29.0
-- Rectangle: $Rectangle
-- rpos: [0.0141584,0.037031,-2322.68]
-- t: 4640.0
-- s: 0.966667
-- pix: undefined
-- this: Controller:Float_Script
-- maxi: [208.051,153.866,-1.34514e-005]
-- info: undefined
-- xpix: undefined
-- thisobj: $Box01
-- mat: MyMap:Bitmap
-- thispos: [-202.16,-142.47,0.0625]
-- size: [416.102,307.732,-2.69028e-005]
-- getBitmapInfo: undefined
-- NT: 0.29
-- mini: [-208.051,-153.866,1.34514e-005]
-- ypix: undefined
>> MAXScript Script Controller Exception: -- Type error: Call needs function or class, got: undefined <<
Sorry for the novice problems…
Yes, it would appear to be about the mat-variable, as the variable “info” is undefined. I used Assign Controller, then found \Objects$object\mat-name\Maps\Diffuse Color:map and selected this. The UVW is not necessary, that was just an earlier idea; the rectangle defines the “UVW-mapping”. The Diffuse Map must be a normal bitmap. If you’ve done this correctly, then I’m not sure… haven’t exactly done any debugging.