November 11, 200223 yr Hey,I'm currently working on a small project which involves (among other things) the following windmill pictured below.I have successfully made the rotating animation of the blades. However, I want to turn to top part of the windmill into the wind. To do so, I have divided the windmill into two GMax files. One is the base support structure (non turning part) and one the top structure, which will need to turn into the wind.I the top structure's .asm file I have substitutedSCALE_AGL OBJECT_0_RETURN, 10000, 126, 131072, 00043D426h, 038E4h, 0E38E38E3h, 08E39h, 0, 0BGL_CALL OBJECT_0_BEGINOBJECT_0_RETURN label wordwithSCALE_AGL OBJECT_0_RETURN, 10000, 126, 131072, 00043D426h, 038E4h, 0E38E38E3h, 08E39h, 0, 0POINT_VICALL OBJECT_0_BEGIN, 0, 0, 0, 0, 0, 0, 0, 0, global_winds_surface_directionOBJECT_0_RETURN label wordas shown on Arno's site. As this didn't work, I placed two of these top structures on screen, also as written on Arno's site. Unfortunately, this also didn't work. Any clues as to what I may be missing here? Bonus question: is it technically possible to have FS turn the blades when there is wind, and have them not moving with no wind?Thanks!Johan
November 13, 200223 yr Author Commercial Member Hi Johan,Sorry I didn't had the time to respond on your mail yet.How did you place the objects? Did you place them from GMax direct or using an API and a lib?In the first case these modifications should be enough, as long as you place more then one object (when two of them are visible it should work).If you used API's to place them you need to put the rotatecall in the API, as the changes you made in the ASM file are not carried into the lib or API.Then about your last question, yes it is possible to do this. Basically it would mean that you have to check the value of the wind speed and if it is zero turn the animation off (this technique for this is the same as the frequency controlled animation I wrote a tutorial about, but now you check the wind speed and not the frequency).ArnoMember Netherlands 2000 Scenery Team[a href=http://home.wanadoo.nl/arno.gerretsen]http://home.wanadoo.nl/arno.gerretsen/banner.jpg[/a] Arno If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done. FSDeveloper.com | Former Microsoft FS MVP | Blog
November 13, 200223 yr Arno,Thanks for the reply. Unfortunately, I did place them directly from GMax, including the alterations and two visible at the same time. Didn't work though.GMax is gonna kill me someday. I finally figured out how to get the animations to work, but then I get this... Aaaargghh :-madThank anyway. Any other suggestions as to what might be going wrong?Johan
November 13, 200223 yr Author Commercial Member Strange, very strange ......Can you maybe send me the source file, so I can have a look?ArnoMember Netherlands 2000 Scenery Team[a href=http://home.wanadoo.nl/arno.gerretsen]http://home.wanadoo.nl/arno.gerretsen/banner.jpg[/a] Arno If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done. FSDeveloper.com | Former Microsoft FS MVP | Blog
November 13, 200223 yr It's in your mailbox. Thanks! :-beerchug(edit: in reply to post number 3)Johan
November 14, 200223 yr Author Commercial Member Check your mail :), it worked with me.ArnoMember Netherlands 2000 Scenery Team[a href=http://home.wanadoo.nl/arno.gerretsen]http://home.wanadoo.nl/arno.gerretsen/banner.jpg[/a] Arno If the world should blow itself up, the last audible voice would be that of an expert saying it can't be done. FSDeveloper.com | Former Microsoft FS MVP | Blog
Create an account or sign in to comment