Jump to content

environment_emitter does not show up?


Von04
 Share

Recommended Posts

Does anyone know why I can place an environment_emitter.gmf in my sandbox scene and it shows up just fine when I load my scene, but when I try to load an environment_emitter.gmf using code, for example, LoadModel("abstract::environment_emitter.gmf"), then it doesn't show up?

3d world studio. 3ds Max 8. GTX 260. Visual Studio 2010. Dual Core 2.6 Mhz processor.

Link to comment
Share on other sites

An emitter is not a model. The gmf file of the emitter is only a placeholder so you can select and move it around in Editor. Use LoadScene to load emitters in code (or CreateEmitter+PaintEntity+LoadMaterial).

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Link to comment
Share on other sites

When you use LoadModel on the environment_emitter it should then load the environment_emitter.lua file which then should create the emitter, but nothing shows up.

3d world studio. 3ds Max 8. GTX 260. Visual Studio 2010. Dual Core 2.6 Mhz processor.

Link to comment
Share on other sites

Ah, that's possible, but I never tried it that way. Make sure you have the Lua state initialized correctly, and also defined the global fw Lua variable in your code.

Ryzen 9 RX 6800M ■ 16GB XF8 Windows 11 ■
Ultra ■ LE 2.53DWS 5.6  Reaper ■ C/C++ C# ■ Fortran 2008 ■ Story ■
■ Homepage: https://canardia.com ■

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...