Difference between revisions of "Rendering with GMax"
From FSDeveloper Wiki
m (Categorised as - GMax & content related) |
|||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | [[Category:GMax]] | ||
+ | [[category:Modeling]] | ||
+ | [[category:Texturing]] | ||
+ | [[category:SDK]] | ||
{{Infobox-Applicable-FSVersion | {{Infobox-Applicable-FSVersion | ||
+ | | MSFS = unknown | ||
+ | | FSXI = false | ||
+ | | P3D5 = true | ||
+ | | P3D4 = true | ||
+ | | P3D3 = true | ||
| P3D2 = true | | P3D2 = true | ||
| P3D = true | | P3D = true | ||
− | | | + | | FSW = true |
+ | | FSXSE = true | ||
| FSXA = true | | FSXA = true | ||
| FSX = true | | FSX = true | ||
| FS2004 = true | | FS2004 = true | ||
| FS2002 = true | | FS2002 = true | ||
+ | | XP11 = unknown | ||
| XP10 = unknown | | XP10 = unknown | ||
| XP9 = unknown | | XP9 = unknown | ||
Line 28: | Line 39: | ||
# Inside your main GMax Folder, create an empty text file | # Inside your main GMax Folder, create an empty text file | ||
# Put these lines inside said text file: | # Put these lines inside said text file: | ||
− | + | *For FS9: | |
− | + | <pre>echo on | |
− | + | cd %cd%\RenderSuite | |
− | + | start GmaxRender.exe | |
− | + | cd.. | |
− | + | start gmax.exe -p gamepacks\FS2004\plugin.ini</pre> | |
− | + | *For FSX: | |
− | + | <pre>echo on | |
− | + | cd %cd%\RenderSuite | |
− | + | start GmaxRender.exe | |
− | + | cd.. | |
− | + | start gmax.exe -i gamepacks\FSX_GMaxGamepack\gmax.ini -p gamepacks\FSX_GMaxGamepack\plugin.ini</pre> | |
− | |||
− | |||
# Save the text file as "GMax with Render.bat" or similar. When asked to change file type, say "Yes" | # Save the text file as "GMax with Render.bat" or similar. When asked to change file type, say "Yes" | ||
#* Create a shortcut to the batch file for the desktop, if so desired | #* Create a shortcut to the batch file for the desktop, if so desired | ||
Line 108: | Line 117: | ||
# Untextured objects on the render image | # Untextured objects on the render image | ||
#* Don't use FSX materials, use standard ones instead | #* Don't use FSX materials, use standard ones instead | ||
− |
Latest revision as of 13:31, 24 October 2020
Applicable |
---|
MSFS |
MS Flight |
LM P3D5 |
LM P3D4 |
LM P3D3 |
LM P3D2 |
LM P3D |
FS World |
FSXSE |
FSXA |
FSX |
FS2004 |
FS2002 |
XP11 |
XP10 |
XP9 |
One of the advantages of using 3D Studio Max over GMax has always been the capability of the former to perform a quick or full rendering of the model one is working on.
Yet, with the right plugins and a bit of effort, one can add such a rendering function to GMax.
This article gives instructions on how to set up and the basic usage of such a plugin.
Contents
Prerequisites
- An installation of GMax 1.2 (installed gamepack does not matter)
Download
Installation of the rendering plugin
- Unzip the downloaded plugin
- Rername the folder "RenderSuite" or similar
- Running RenderSuiteInstall.exe from the folder and follow the instructions
- Delete the .bat file the installer creates on your desktop
- Inside your main GMax Folder, create an empty text file
- Put these lines inside said text file:
- For FS9:
echo on cd %cd%\RenderSuite start GmaxRender.exe cd.. start gmax.exe -p gamepacks\FS2004\plugin.ini
- For FSX:
echo on cd %cd%\RenderSuite start GmaxRender.exe cd.. start gmax.exe -i gamepacks\FSX_GMaxGamepack\gmax.ini -p gamepacks\FSX_GMaxGamepack\plugin.ini
- Save the text file as "GMax with Render.bat" or similar. When asked to change file type, say "Yes"
- Create a shortcut to the batch file for the desktop, if so desired
- Start GMax with the .bat file or the shortcut leading to it
- There should be a "Rendering" entry in the main menu bar. If not, refer to the troubleshooting section
Using the RenderSuite
General setup and usage of the render suite is fairly easy as outlined in the following general procedure.
- Warning: FSX Materials
- The RenderingSuite (or the contained YAFRAY render engine to be more specific) can't use FSX materials, so either:
- don't use RenderSuite for rendering FSX models in GMax or
- use RenderSuite for models in very early stages, i.e. without textures or temporary textures, etc... or
- set up standard materials with textures and then run the "Select By Materials" script to mass assign the render-friendly textures to your scene objects
- Put some lights into your scene. Spots, Omnis, anything that will properly light the object. Default properties are okay for a start
- Put a camera into your scene. Free or Target
- Adjust the angle and position of the camera, so that the desired objects are rougly in focus
- Make sure to tick "Manual Clipping" in the camera options!
- For interior spaces, a 15mm lens and 0.1m near clipping treshhold works well
- Make sure to tick "Manual Clipping" in the camera options!
- Click any viewport's name, then go to "Views" and select "Camera01". The viewport should now show what the camera is seeing
- The custom camera can be controlled like the default camera in the "Perspective" or "User" viewport mode. Fine tune, if needed
- When ready, select "Rendering" from the menu
- Select any of the two clients
- YAGMAX seems to work best for the author
- RenderSuite output an untextured model and requires that any scene object has a material applied
- Rendering options should be left at default for now
- Make sure that the active viewport is set to "Camera01"
- Click YAFRAY Render
- Note: Depending on the number of objects and polygons visible in the scene and selected rendering resolution, the following can take some time
- Wait. There should be activity in the listener window on the bottom left of GMax' main screen
- After a moment, a window labeled "RenderSuite" should pop up, in which the rendered content of the "Camera01" viewport is slowly drawn
- In case no window pops up, refer to the second entry in the troubleshooting section
- In case of a pleasing rendering result, clicking the disk icon will save the output image in Windows Bitmap format to the "RenderSuite" folder
- This is the basic process. Plaing with the options for the camera, lights and YAFRAY can yield better results. The worst that can happen is a weird looking or empty render image
Example Render Images
Troubleshooting
- No "Rendering" menu
- Redownload RenderSuite, if the .zip file is not present anymore and extract the "Maxmenus.mnu" file from it
- Copy the .mnu file to "Gmax\RenderSuite"
- While in GMax, go to "Customize", then "LoadCustomUI scheme"
- Browse to the "RenderSuite" folder, then select "Menu File (.mnu)" from the dropdown box above "Open"
- Select the "Maxmenus.mnu" file and click "Open"
- You should now have a "Rendering" menu item. if not, restart GMax or repeat the procedure
- No rendering window after clicking "Render"
- Open Windows task manager (CTRL+Shift+ESC)
- Select "GMaxRender.exe" in the process list
- Click "End Process"
- Browse to your RenderSuite folder in Windows Explorer
- Start GMaxRender.exe
- The rendering window should now pop up and start to display the rendered image. If not, restart the rendering process
- YAFRAY crashes upon rendering
- Don't use FSX materials
- Make sure to hide any objects not visible in the render image, such as those behind the camera
- When using RenderSuite for rendering, it displays an error about empty objects and/oror objects without materials
- Assign temporary materials to the object(s) in question. They won't need to have a diffuse map
- Hide any dummies from the scene
- Untextured objects on the render image
- Don't use FSX materials, use standard ones instead