Blender 2.79 Re-Volt Add-on

Post your own tools and resources, as well as your cars and tracks.
User avatar
Marv
Site Admin
Posts: 227
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: 227
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: 227
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: 227
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: 227
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.
User avatar
Kiwi
Posts: 392
Joined: Thu Dec 07, 2017 9:04 pm

Re: Blender 2.79 Re-Volt Add-on

Unread post by Kiwi » Tue Jun 19, 2018 10:40 am

Marv, I didn't experienced this issue at all, while working with Blender and your addon (since end of last year). I very often use the functions you described. (CTRL + Z, Switching between Edit- and Object Mode with TAB).

I am using Windows 10, the newest Blender version, and the newest version of your addon.
User avatar
Marv
Site Admin
Posts: 227
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 11:09 am

It might just have been a bug in a specific Blender version. Thanks for the info :)
User avatar
Marv
Site Admin
Posts: 227
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 Jul 30, 2018 2:03 pm

I'm planning to release a new version on the 1st or 2nd of August. There are some new features which need to be tested:

Topics: Mirror Planes, Hull, Bugfixes, Tools

- Additions:
- Mirror Planes: .rim support
- Hulls: .hul support
- Import and Export
- _Hulls_ tool panel with convex hull generation
- Vertex color layer list in the tools panel
- Batch Bake section in the Light and Shadow tool panel
- RVGL Launcher in the Helpers panel. The RVGL path (folder) has to be set in the add-on settings.

- Fixes:
- Crash when importing levels with texture animation (reported by Gotolei)
- Batch bake should not crash anymore
- Import and export of .fin properties (mainly colors)
- Set default model rgb to (0.5, 0.5, 0.5)
- Too many dummy textures when importing prm
- Catch error when parameters.txt files don't end with a '}' (reported by Shara)
- NCPs consisting of multiple objects are now exported with correct materials

- Modifications:
- New documentation, yet again
- Code restructuring
- UI restructuring

You can get the current dev version here: https://github.com/Yethiel/re-volt-addo ... ve/dev.zip

I also worked on a new documentation which you can find in docs/index.html which covers some information about the new features.

On Linux you'll have to install qhull (package name should be qhull). The windows version is bundled with the add-on but I don't know if it works.
User avatar
Marv
Site Admin
Posts: 227
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 Jul 31, 2018 10:43 am

The new version is out: https://github.com/Yethiel/re-volt-addo ... va_18.0801
Follow the link to read the changelog, it's similar to the one in my previous post.

Definitely check out the documentation as well: https://yethiel.github.io/re-volt-addon

You can now import and export complete hulls (convex and interior), as well as generate new ones (convex hull only at the moment):

Image

Mirror Planes can also be imported and exported now. Which track is this?

Image
User avatar
Kiwi
Posts: 392
Joined: Thu Dec 07, 2017 9:04 pm

Re: Blender 2.79 Re-Volt Add-on

Unread post by Kiwi » Mon Jan 21, 2019 6:37 am

Is there already a planned release date for the update, which include support to the new RVGL version features (additional texture pages)?

At the moment faces with mappings to additional texture pages - for example spavolt1k.bmp - will be exported with spavolt1a.bmp, which results in a wrong mapping ingame.
User avatar
Marv
Site Admin
Posts: 227
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 Jan 21, 2019 12:12 pm

Try out the dev branch of the add-on, martin added support for it: https://github.com/Re-Volt/re-volt-addo ... ve/dev.zip
I'm not sure when I'll get to release a new version.
User avatar
Marv
Site Admin
Posts: 227
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 Jul 14, 2019 3:44 pm

Kiwi wrote:
Sun Jul 14, 2019 3:28 pm
I've tried to install the DEV Branch of the addon, and now I get the following error messsage, after importing my w-file:

Image

The same error also appears, if I try to import any other w-file (for example from stock tracks).
I can't keep up with the API changes. I think it worked in the latest blender nightly build but I have no idea. They changed the way vertex colors work and I think they changed it from 3 values to 4 (including alpha).

I won't be able to fix it for now, I'll probably address it in the 2.8 port of the add-on.
User avatar
SebR
Posts: 148
Joined: Thu Dec 07, 2017 8:09 pm

Re: Blender 2.79 Re-Volt Add-on

Unread post by SebR » Sun Jul 14, 2019 4:50 pm

how can i know wich plug-in version i use ? : I think i use version 18.8.1
because i can load *.W without any issue with Blender 2.79b (but i use 32bit one [i don't like 64bit software, too many bugs])


note: the "Download and Documentation" give 404 error ("yethiel" instead of "re-volt" ? )
note2: just tryed with dev branche and get the same error as Kiwi
Last edited by SebR on Sun Jul 14, 2019 5:23 pm, edited 2 times in total.
wicked DROPBOX !!! If you found broken link PM me

AlicebanD an English voice that you must discover !!
User avatar
URV
Site Admin
Posts: 108
Joined: Mon Dec 04, 2017 9:36 pm
Discord: URV#9830
Location: /home/marv

Re: Blender 2.79 Re-Volt Add-on

Unread post by URV » Sun Jul 14, 2019 5:12 pm

Would it be reasonable to implement a feature that could allow to easily re-scale an entire track? It's easy to scale down the PRM and NCP files, but we currently have to redo all the MAKEITGOOD stuff. There's plenty of decent tracks out there that happen to have the scale wrong, so this kind of feature would be tremendously useful and might result into a pretty big update for the I/O pack.
User avatar
Marv
Site Admin
Posts: 227
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 Jul 14, 2019 5:23 pm

URV wrote:
Sun Jul 14, 2019 5:12 pm
Would it be reasonable to implement a feature that could allow to easily re-scale an entire track? It's easy to scale down the PRM and NCP files, but we currently have to redo all the MAKEITGOOD stuff. There's plenty of decent tracks out there that happen to have the scale wrong, so this kind of feature would be tremendously useful and might result into a pretty big update for the I/O pack.
In case the add-on ever supports all formats you'd just have to import all track files and scale them in Blender, then export them again
User avatar
SebR
Posts: 148
Joined: Thu Dec 07, 2017 8:09 pm

Re: Blender 2.79 Re-Volt Add-on

Unread post by SebR » Sun Jul 14, 2019 6:36 pm

the only way i know to do this is to export your track then after change texture number with a HexEditor ... like i did for Trailer Park fix : viewtopic.php?f=9&t=412&sid=e3d1d4f9a2e ... c4cf53bc05
wicked DROPBOX !!! If you found broken link PM me

AlicebanD an English voice that you must discover !!
User avatar
Wichilie
Posts: 51
Joined: Sat Feb 24, 2018 12:52 pm

Re: Blender 2.79 Re-Volt Add-on

Unread post by Wichilie » Sun Jul 14, 2019 8:34 pm

Get the latest release of the dev branch. I believe someone noted it stops working after texture Z, with anything from AA onwards just mapping onto A, but it's better than only going up to J.
User avatar
martin
Posts: 4
Joined: Sat Dec 08, 2018 6:26 am

Re: Blender 2.79 Re-Volt Add-on

Unread post by martin » Mon Jul 15, 2019 11:02 am

Problem appeared after this commit. Quickly fixed in 5 minutes, re-download or pull.
Wichilie wrote:
Sun Jul 14, 2019 8:34 pm
Get the latest release of the dev branch. I believe someone noted it stops working after texture Z, with anything from AA onwards just mapping onto A, but it's better than only going up to J.
It is because you are not allowed to name textures tracka.bmp in blender image editor, however it will work for compatibility. Use 0.bmp ... 63.bmp instead. I can't quite recall but there was a reason for this change.
Practising doing more with less.
User avatar
Wichilie
Posts: 51
Joined: Sat Feb 24, 2018 12:52 pm

Re: Blender 2.79 Re-Volt Add-on

Unread post by Wichilie » Mon Jul 15, 2019 11:15 am

Ah, I see. Thank you very much! ^^
User avatar
Marv
Site Admin
Posts: 227
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 Jul 15, 2019 12:05 pm

You're a hero!
User avatar
SebR
Posts: 148
Joined: Thu Dec 07, 2017 8:09 pm

Re: Blender 2.79 Re-Volt Add-on

Unread post by SebR » Mon Jul 15, 2019 12:16 pm

import now working BUT i don't think it's working as it shoold be for texture *K.bmp :shock:
11th texture is imported as 24th one

(look at my previous post and try my Trailer Park fix)
wicked DROPBOX !!! If you found broken link PM me

AlicebanD an English voice that you must discover !!
User avatar
martin
Posts: 4
Joined: Sat Dec 08, 2018 6:26 am

Re: Blender 2.79 Re-Volt Add-on

Unread post by martin » Mon Jul 15, 2019 12:47 pm

Marv wrote:
Mon Jul 15, 2019 12:05 pm
You're a hero!
Nahh, I'm software engineer for industry and automation.
SebR wrote:
Mon Jul 15, 2019 12:16 pm
import now working BUT i don't think it's working as it shoold be for texture *K.bmp :shock:
11th texture is imported as 24th one

(look at my previous post and try my Trailer Park fix)
Naah, everything works perfectly, somehow I decided to check it. Id 24 was an ugly hack to get an extra texture back in the days - this track is outdated, it will not work now. Just rename image 24.bmp into 10.bmp in uv/image editor, assign a new texture to all the triangles which are using this bad id and export .w file. Do not play with hex editing.
Practising doing more with less.
User avatar
SebR
Posts: 148
Joined: Thu Dec 07, 2017 8:09 pm

Re: Blender 2.79 Re-Volt Add-on

Unread post by SebR » Mon Jul 15, 2019 12:50 pm

oups i made a mistake i forgot to load W file from custom folder ...
ok it's work fine sorry :oops:
wicked DROPBOX !!! If you found broken link PM me

AlicebanD an English voice that you must discover !!
User avatar
Kiwi
Posts: 392
Joined: Thu Dec 07, 2017 9:04 pm

Re: Blender 2.79 Re-Volt Add-on

Unread post by Kiwi » Mon Jul 22, 2019 7:18 am

Thanks a lot Martin, the version you posted works fine.
Post Reply