Von04 Posted October 27, 2011 Share Posted October 27, 2011 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? Quote 3d world studio. 3ds Max 8. GTX 260. Visual Studio 2010. Dual Core 2.6 Mhz processor. Link to comment Share on other sites More sharing options...
Canardia Posted October 27, 2011 Share Posted October 27, 2011 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). Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Von04 Posted October 27, 2011 Author Share Posted October 27, 2011 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. Quote 3d world studio. 3ds Max 8. GTX 260. Visual Studio 2010. Dual Core 2.6 Mhz processor. Link to comment Share on other sites More sharing options...
Canardia Posted October 27, 2011 Share Posted October 27, 2011 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. Quote ■ Ryzen 9 ■ RX 6800M ■ 16GB ■ XF8 ■ Windows 11 ■ ■ Ultra ■ LE 2.5 ■ 3DWS 5.6 ■ Reaper ■ C/C++ ■ C# ■ Fortran 2008 ■ Story ■ ■ Homepage: https://canardia.com ■ Link to comment Share on other sites More sharing options...
Josh Posted October 27, 2011 Share Posted October 27, 2011 http://www.leadwerks.com/werkspace/topic/597-cc-lua-and-framework-all-working-together/ Quote My job is to make tools you love, with the features you want, and performance you can't live without. Link to comment Share on other sites More sharing options...
Recommended Posts
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.