• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

Rotate-to-User parameters

Messages
97
Country
unitedstates
Hi,

I added the following line to my .asm code, and the result was a sprite that rotated it's heading, but not it's pitch.

SPRITE_VICALL OBJECT_0_BEGIN, 0, 0, 0, 0, 0, 0, 0, 1, 0

When viewed from above, it's easy to see that the sprite is rotating.

Is there any way to get the sprite to adjust it's pitch as well? I could not find any documentation that outlines what the 0's and 1's actually mean. Could somebody document exactly what these parameters do?

Thanks!

Nick
 

rhumbaflappy

Administrator
Staff member
Resource contributor
Messages
5,945
Country
us-wisconsin
SPRITE_VICALL OBJECT_0_BEGIN, 0, 0, 0, pitch, 0, bank, 0, heading, 0

( ? )

This is BGLC tweaking, so I moved the thread.

Dick
 
Messages
97
Country
unitedstates
Thanks Dick.

Not sure why I mis-posted. Probably saw the "ASM" in SCASM and had a brain fart.

Incidentally, Good old trial and error got it working for me. Wouldn't you know, I didn't get it right until the last try.

I still have two questions though. First, the method described in the wiki affects the entire scene. Is there a way to apply the rotate-to-user tweak to specific geometry?

Second, and if anyone is still reading this, I've found my next hurdle: Getting the separation plane to work.

I have several separation planes working for my PAPI's and previous versions of my lights that use the BGL_Light command, so I know it works and that I have the syntax correct. However, now I'm trying to get the same technique working on a flat plane with a texture applied.

Despite several hours of trial and error, I can't seem to get it working. I can't figure out which parts of the code should be nested within the separation plane code block. Should it be around the DRAW_TRI parts, the VERTEX_DEF parts, or what? I've tried many combinations, but I haven't found the right one.

The brute force trial-and-error method isn't going too well tonight. Can any kind soul point me in the right direction?

Thank you kindly.

Nick
 
Messages
97
Country
unitedstates
Sorry for being rude and bumping my own post.

I've searched all over the place but I can't find an example of how to use a separation plane on anything other than a BGL_LIGHT. Is it even possible to use it on 3d geometry? I need to get this sorted out so I can move on to other problem areas...

Thanks!

Nick
 
Top