Blender 2.79 Re-Volt Add-on

Post your own tools and resources.
User avatar
Marv
Site Admin
Posts: 82
Joined: Mon Dec 04, 2017 6:45 pm
Location: /home/marv
Contact:

Blender Blender 2.79 Re-Volt Add-on

Unread post by Marv » Mon Dec 04, 2017 11:41 pm

This add-on is intended to be used with Blender 2.79a.

Download and Documentation

GitHub page


Features:

Import and Export Meshes (.prm/.m):
Mesh, UV, vertex colors, texture, face properties and lods (level of detail)

Import Cars from parameters.txt:
Import the car model and wheels from parameters.txt files.

Import and Export World (.w):
Import and export Re-Volt level mesh files including boundary boxes, environment colors and texture animations.

Import and Export Collision (.ncp):
Import and export Re-Volt collision files, properties and materials.

Mesh Editing Tools:
Edit face properties, vertex colors and texture animations.

Generate Shadows:
Generate shadow textures and coordinates for in-game use with just one click.

Generate Texture Animations (World):
Create A-to-B or grid animations easily.

Shade Meshes:
Shade meshes by baking light to vertex colors with just one click.
User avatar
Marv
Site Admin
Posts: 82
Joined: Mon Dec 04, 2017 6:45 pm
Location: /home/marv
Contact:

Re: Blender 2.79 Re-Volt Add-on

Unread post by Marv » Sat Dec 09, 2017 2:16 pm

Added an important note to the first post. Due to a Blender bug and a new feature, I had to update the add-on. Since the add-on now only works with a nightly build of Blender, there won't be a new version release in a while.

EDIT: No longer relevant. Blender 2.79a gets rid of the bug.
User avatar
Marv
Site Admin
Posts: 82
Joined: Mon Dec 04, 2017 6:45 pm
Location: /home/marv
Contact:

Re: Blender 2.79 Re-Volt Add-on

Unread post by Marv » Sun Feb 25, 2018 2:51 pm

I just released version 18.0225 of the add-on.

Download and documentation: https://yethiel.github.io/re-volt-addon/

Changes:
  • NCP: *Only export selected* option added (check the documentation for details)
  • Rewrote the parameters.txt parser, should now load all cars
  • The light panel now only shows up if at least one object is selected
  • New system for handling import and export errors

Have fun testing this one out. Please report any bugs or post feature requests in this forum thread. (Or even better, raise an issue on GitHub.)


Let me explain the two most important changes:

NCP

This is a feature that some track makers requested. Up until now, you only could export the entire scene as NCP.
This new option allows you to mark only one or many objects for export.

Image

This is an example of a normal scenario of exporting collision objects for a track:
Let's say the cubes are some detail models and the ground plane is your track's mesh.

Image

The exported NCP file would look exactly the same way. All objects are offset from the center.

However, if you want to export your detail objects as separate files (PRM instances), you will also have to export their collision to separate NCP files.
To export the collision of one single object, just enable the setting:

Image

and then select the object in question and export as ncp.

Image

After importing that file again, you will notice that the object is going to be at the very center again. This is exactly what happens when you export a single PRM mesh.

Image

And that way you can easily export the collision for your PRM instances.

Parameters:

I rewrote the parameters.txt completely to work just like the one used in Re-Volt. That way you can import all cars that RVGL would load as well.
As an addition, it will warn you about any errors in the parameters.txt you loaded. Patriot, for example, is missing a final closing brace } in its parameters file:

Image

The car will still be imported with the values that could be read. In this case nothing went horribly wrong but it will still prompt you a bout it so you can fix it.

Keep in mind that parameters.txt files will also be loaded to find out a car model's texture, even when you're only importing the body or wheels.
Post Reply