Difference between revisions of "Rendering with GMax"

From FSDeveloper Wiki
Jump to: navigation, search
m (Categorised as - GMax & content related)
 
(7 intermediate revisions by 2 users 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
| FSXI = 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 17: Line 28:
 
=== Prerequisites ===
 
=== Prerequisites ===
 
* An installation of GMax 1.2 (installed gamepack does not matter)
 
* An installation of GMax 1.2 (installed gamepack does not matter)
* Download GMax Rendering Suite from [http://www.ppmsite.com/forum/download.php?id=44398&sid=5f064355c02c38dcb5cba130c15354fb here]
+
<br>
 +
=== Download ===
 +
[http://www.ppmsite.com/forum/download.php?id=44398&sid=5f064355c02c38dcb5cba130c15354fb Here]
 
<br>
 
<br>
 
=== Installation of the rendering plugin ===
 
=== Installation of the rendering plugin ===
Line 26: 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:
+
*For FS9:
#:echo on
+
<pre>echo on
#:cd %cd%\RenderSuite<br>
+
cd %cd%\RenderSuite
#:start GmaxRender.exe<br>
+
start GmaxRender.exe
#:cd..<br>
+
cd..
#:start gmax.exe -p gamepacks\FS2004\plugin.ini
+
start gmax.exe -p gamepacks\FS2004\plugin.ini</pre>
#:<br>
+
*For FSX:
#*For FSX
+
<pre>echo on
#:echo on<br>
+
cd %cd%\RenderSuite
#:cd %cd%\RenderSuite<br>
+
start GmaxRender.exe
#:start GmaxRender.exe<br>
+
cd..
#:cd..<br>
+
start gmax.exe -i gamepacks\FSX_GMaxGamepack\gmax.ini -p gamepacks\FSX_GMaxGamepack\plugin.ini</pre>
#:start gmax.exe -i gamepacks\FSX_GMaxGamepack\gmax.ini -p gamepacks\FSX_GMaxGamepack\plugin.ini
 
#:<br>
 
 
# 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 46: Line 57:
 
<br>
 
<br>
 
=== Using the RenderSuite ===
 
=== Using the RenderSuite ===
General usage of the render suite is as follows.
+
General setup and usage of the render suite is fairly easy as outlined in the following general procedure.
 +
<br>
 +
<br>
 +
:'''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 [http://www.fsdeveloper.com/forum/showpost.php?p=624227&postcount=15 "Select By Materials" script] to mass assign the render-friendly textures to your scene objects
 
<br>
 
<br>
 
* Put some lights into your scene. Spots, Omnis, anything that will properly light the object. Default properties are okay for a start
 
* Put some lights into your scene. Spots, Omnis, anything that will properly light the object. Default properties are okay for a start
Line 52: Line 70:
 
* Adjust the angle and position of the camera, so that the desired objects are rougly in focus
 
* 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!
 
** Make sure to tick "Manual Clipping" in the camera options!
*** For interior spaces, a 15mm lens and 0.0m near clipping treshhold works well
+
*** For interior spaces, a 15mm lens and 0.1m near clipping treshhold works well
 
* Click any viewport's name, then go to "Views" and select "Camera01". The viewport should now show what the camera is seeing
 
* 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
 
* The custom camera can be controlled like the default camera in the "Perspective" or "User" viewport mode. Fine tune, if needed
Line 70: Line 88:
 
<br>
 
<br>
 
=== Example Render Images ===
 
=== Example Render Images ===
 
 
[[image:732.jpg | thumb | none | Boeing 737-200 rendered with RenderSuite's YAGMAX mode]]
 
[[image:732.jpg | thumb | none | Boeing 737-200 rendered with RenderSuite's YAGMAX mode]]
[[image:580vc.jpg | thumb | none | Convair 580 cockpit model rendered with RenderSuite's YAGMAX mode]]
 
 
<br>
 
<br>
 
=== Troubleshooting ===
 
=== Troubleshooting ===
Line 90: Line 106:
 
#* Start GMaxRender.exe
 
#* Start GMaxRender.exe
 
#* The rendering window should now pop up and start to display the rendered image. If not, restart the rendering process
 
#* The rendering window should now pop up and start to display the rendered image. If not, restart the rendering process
 +
#:<br/>
 +
# 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
 +
#:<br>
 +
# 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
 +
#:<br>
 +
# Untextured objects on the render image
 +
#* Don't use FSX materials, use standard ones instead

Latest revision as of 13:31, 24 October 2020

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.

Prerequisites

  • An installation of GMax 1.2 (installed gamepack does not matter)


Download

Here

Installation of the rendering plugin

  1. Unzip the downloaded plugin
  2. Rername the folder "RenderSuite" or similar
  3. Running RenderSuiteInstall.exe from the folder and follow the instructions
  4. Delete the .bat file the installer creates on your desktop
  5. Inside your main GMax Folder, create an empty text file
  6. 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
  1. 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
  2. Start GMax with the .bat file or the shortcut leading to it
  3. 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
  • 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

Boeing 737-200 rendered with RenderSuite's YAGMAX mode


Troubleshooting

  1. 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

  2. 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

  3. 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

  4. 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

  5. Untextured objects on the render image
    • Don't use FSX materials, use standard ones instead