Jump to content

1.0 -> 2.x Shader Deprecations


photo

Recommended Posts

Posted

Hi all,

 

We're in the process of upgrading our code base to Unigine 2.3.1 and the main unknown for me at this point there are two main concerns:

 

1. Shader deprecations:  I couldn't find evidence of this in the documentation but I just wanted to confirm - will we (potentially) have to update shader code?  If so can someone point me to the relevant doco?

 

2. .mesh file formats: I understand there is a new format as of 2.x - but is Unigine 2.x backwards compatible?  ie. Can I still use the old format with the new engine?

 

Any help on this would be much appreciated.

 

Cheers,

SImon

Posted

Hi Simon,

 

2. .mesh file formats: I understand there is a new format as of 2.x - but is Unigine 2.x backwards compatible?  ie. Can I still use the old format with the new engine?

After conversion - yes. You can do it with MeshImport tool for example.

 

1. Shader deprecations:  I couldn't find evidence of this in the documentation but I just wanted to confirm - will we (potentially) have to update shader code?  If so can someone point me to the relevant doco?

All shaders are now written with a help of UUSL. I'm afraid, there is no special guide for shader conversion, because rendering pipeline is changed drastically. You can also check the updated rendering sequence article here: https://developer.unigine.com/en/docs/2.3.1/principles/render/sequence/. Material format article is still in development.

 

Thanks!

How to submit a good bug report
---
FTP server for test scenes and user uploads:

Posted

Hangon - Are you saying we can't use any of our old material (.mat) or shader (.shader) files at all?  So there is no backwards compatibility?

 

We have A LOT of custom material and shader code and this could be a show-stopper for us.

Posted

Hi Simon,

 

Unfortunately, it's impossible to have fully backwards compatibility when switching between major versions (1 -> 2 in this case). You can try to backup your project and migrate it from SDK Browser. After that with a help of UUSL update your custom shaders and mat files.

 

Sorry for the inconvenience caused.

How to submit a good bug report
---
FTP server for test scenes and user uploads:

×
×
  • Create New...