Blender 2.79 Re-Volt Add-on

Post your own tools and resources, as well as creations (tracks and cars).
User avatar
Marv
Site Admin
Posts: 122
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.79b.

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.

Import and Export Instances (.fin):
Import and export Re-Volt instance files and tweak their properties.

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: 122
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: 122
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.
User avatar
Marv
Site Admin
Posts: 122
Joined: Mon Dec 04, 2017 6:45 pm
Location: /home/marv
Contact:

Re: Blender 2.79 Re-Volt Add-on

Unread post by Marv » Mon Apr 30, 2018 11:10 am

New version:

+ Download
+ Installation
+ Documentation

This Version requires Blender 2.79b.

Topics: Instance (.fin), UI, Bugfixes

Additions
- Instances (.fin): Export (full support)
- Select by name button in the Instances panel that allows users to select all objects with a similar name
- Mark as Instance button in the Instances panel that sets the instance properties on all selected objects
- Batch baking feature for instance RGB in the Instances panel
- Initial hull support: Import (unfinished)

Fixes
- Textures are now loaded when importing a mesh from the custom folder (reported by Gotolei)
- Ensure that NCP layers exist when exporting: All Material layers and Type layers are now kept. This fixes missing materials when exporting NCP. (reported by LoScassatore, Gorgonzola)
- Export of textures with suffixes like .bmp.001 (reported by Boy80)

Modifications
- Moved the instances helper section to a dedicated Instances panel.
- Objects marked as instance (*Is Instance*) will no longer be exported when exporting to .w, use .fin instead
- Fixed all Re-Volt panels to the top (object and scene properties) so they're easier to find. This makes the add-on a lot more intrusive but most people using this add-on use Blender exclusively for Re-Volt.
- Message boxes for confirming actions in the helpers panel
- Texture number face property only shows when Use Number for Textures option is enabled
- Prefer Solid Textured Mode is now disabled by default
User avatar
Marv
Site Admin
Posts: 122
Joined: Mon Dec 04, 2017 6:45 pm
Location: /home/marv
Contact:

Re: Blender 2.79 Re-Volt Add-on

Unread post by Marv » Tue Jun 19, 2018 7:30 am

Hey guys,

some people experienced problems with CTRL+Z: Blender would crash whenever you undo changes.
To me, it also happened when switching from edit mode to object mode using tab. Using the dropdown menu always works fine.

Did someone else experience something similar? What did you do right before it crashed? Can you reproduce it? I'm trying to find out what exactly makes Blender crash. It seems to do so with and without my add-on enabled so I'm not sure if it's that.
Post Reply