ItooSoft Logo Welcome, Guest. Please login or register.
May 21, 2013, 11:13:16 am
News:

Itoo Software Forum  |  Forest Pack  |  Forest Pro (*)  |  Forest Pro beta  |  Possible bug with FP+VRay : Unhandled exceptions « previous next »
Pages: [1] Print
Author Topic: Possible bug with FP+VRay : Unhandled exceptions  (Read 7971 times)
BB1610
Jr. Member
**
Posts: 72


« on: September 30, 2009, 09:13:48 am »

Hi,
As topic name suggest, we encountered issues when rendering FP objects with VRay ( both 1.5 SP2 & SP3 ). VRay post this error :

---
Last marker is at .\src\vrenderlight.cpp, line 152: Exitting VRenderLightObj::init()
---


The FP objects are using multi/sub material in which some of submaterials are VrayLightMtl, but none of that VRayLightMtl are assigned to the FP geometry objects.

This error from VRay occur only after:
a) merging FP objects from one scene to another
b) updating ForestPro to the newest beta version

The solution to this is to delete the `old` FP objects and recreate them from scratch again. Or assign plain VrayMtl to the override slot of Vray Global Switches ( for testing purpouses only ). Or disable/delete VrayLightMtl in that multi/sub material ( seems to work randomly )

Also, we wanted to create custom maxscript which will automatize this recreation process since the presets aren`t working flawlessly -  we don`t know how to create new FP correctly using maxscript ( mainly how to add geometry to geometry list ) and we would apreciate if you could post a simple examples for that.

Thanks in advance
-Radomir

PS : In attachement is log from VRay.

* vraylog-error-fp.txt (61.59 KB - downloaded 528 times.)
Logged
iToo
Administrator
Hero Member
*****
Posts: 2141


WWW
« Reply #1 on: September 30, 2009, 10:25:57 am »

Hi,

I've attached a sample script that creates a Forest object with two items in the geometry list: a box as custom object and a billboard. The most important step to get a working object, is to add values to all parameters of type "xxxlist" (see the code). These parametes define the Geometry List.

We am aware of the Preset issues in latest versions. All these problems must be solved in 3.2.8b, if not please tell us.

About the VRay error, we will investigate it. What beta version have you used 3.2.7b or 3.2.8b ?


* CreateForest3.ms (0.79 KB - downloaded 286 times.)
Logged

Carlos Quintero
Itoo Software
www.itoosoft.com
carlosqg@itoosoft.com
BB1610
Jr. Member
**
Posts: 72


« Reply #2 on: September 30, 2009, 11:40:46 am »

Hi,
thanks for the script, and for the version - we use latest 3.2.8b.

-Radomir
Logged
BB1610
Jr. Member
**
Posts: 72


« Reply #3 on: September 30, 2009, 03:01:10 pm »

Hi,

I've have tried forest creation using maxcript, but there seems to be problem with "Custom Edit" mode+"Spacing along path". All parameters are set, but trees will not show. If I click Create button manually right after automatic creation, nothing happens. Solution is to manually switch to "Generate" mode and back again to "Custom Edit" and hit Create button again. After that forest will show as it should.
Secondly, maxcript will not create forest using parent-child structure with its spline. I don't know if it is ok, but maybe I'm doing something wrong, or it's not possible in maxscript.

I attached maxscript, that copies parameters we need from existing forest object to a new clean forest object created by script. Second attachment is displaying 3ds selector with "Display -> Display children" turned on

-Radomir

* Macro_ForestCopier.mcr (2.88 KB - downloaded 281 times.)

* 3ds_select.gif (23.24 KB, 512x482 - viewed 599 times.)
Logged
iToo
Administrator
Hero Member
*****
Posts: 2141


WWW
« Reply #4 on: September 30, 2009, 04:21:11 pm »

Hi,

A Forest object in Custom Edit mode works in a different way, because once the trees are created (using the Creation Tools or clicking by hand), all of them are stored in the Forest object and can be accessed using the interface 'trees':

showInterfaces $Forest01

Here there some samples using this interface (end of page): http://www.itoosoft.com/english/menu.php?id=forest_install

Really the parameters of Creation Tools (path and so), can be ignored. You don't need to copy them.

The parent-child relation is only a link between both objects (same as using 'Select and Link' from the toolbar). I don't know how to do it from Maxscript, but there must be some command for that.

Logged

Carlos Quintero
Itoo Software
www.itoosoft.com
carlosqg@itoosoft.com
iToo
Administrator
Hero Member
*****
Posts: 2141


WWW
« Reply #5 on: October 04, 2009, 05:42:22 am »


I'm trying to reproduce this issue, but VRay doesn't crash. Using Max 2010 64 bit, VRay 1.5.SP3a, Forest 3.2.8b, i create a test scene with some Forest objects that use multi-sub with VRayLightMtl, save it and merge the objects in a new scene... but render works fine.

Have you some test scene that we would to use ?

Logged

Carlos Quintero
Itoo Software
www.itoosoft.com
carlosqg@itoosoft.com
BB1610
Jr. Member
**
Posts: 72


« Reply #6 on: October 04, 2009, 07:56:02 am »

Hellou,
I would like to send you a scene we`re working on, but due to the NDA, we could not. Unfortunatelly, stripped scene isn`t possible either. The very best debug would be on site at us Smiley

-Radomir
Logged
iToo
Administrator
Hero Member
*****
Posts: 2141


WWW
« Reply #7 on: October 04, 2009, 08:26:02 am »


Agreed. Well, then we will try other tests.

The scene used to merge was created with Forest 3.2.8b ? If not, do you get the same result saving it with 3.2.8b before merging ?

Logged

Carlos Quintero
Itoo Software
www.itoosoft.com
carlosqg@itoosoft.com
BB1610
Jr. Member
**
Posts: 72


« Reply #8 on: October 04, 2009, 09:01:51 am »

Ah, the merging was done from lower versions to the 3.2.8b. Bassically this is done after new version of FP is out. So - it was mixed in between last 3 beta versions.
Logged
BB1610
Jr. Member
**
Posts: 72


« Reply #9 on: October 10, 2009, 05:29:29 pm »

After some additional test, I found that this unhandled exception is related to the animation. If I render in single frame mode, its ok, but if change to any of animation range the error will occur.
Logged
iToo
Administrator
Hero Member
*****
Posts: 2141


WWW
« Reply #10 on: October 11, 2009, 02:00:30 am »


Thanks for the info. We continue making tests to reproduce this issue, but without results so far. In fact, in our tests we just found other bug, although not related with this:

- Fixed crash when merging Forest objects from an external scene while a Forest object was being editing

There is some difference saving old scenes with 3.2.8b before to merge ?

Logged

Carlos Quintero
Itoo Software
www.itoosoft.com
carlosqg@itoosoft.com
BB1610
Jr. Member
**
Posts: 72


« Reply #11 on: October 11, 2009, 09:11:51 am »

Quote
There is some difference saving old scenes with 3.2.8b before to merge ?

I don`t quite understand,  - if the merged FP looks different from the `original` one ? If so, then imho it doesnt look different.

I also sent you a stripped scene of my project ( @ your email ), where the error occur. Just render it in animation mode.
Logged
iToo
Administrator
Hero Member
*****
Posts: 2141


WWW
« Reply #12 on: October 11, 2009, 11:26:54 am »

Quote
There is some difference saving old scenes with 3.2.8b before to merge ?

I don`t quite understand,  - if the merged FP looks different from the `original` one ? If so, then imho it doesnt look different.

No, i mean if it also crashes saving all scenes with Forest 3.2.8b before merge them. We have introduced some changes in the Forest's data format. The plugin converts the data automatically when a scene of a previous version is loaded, but perhaps there is some problem merging scenes that uses different Forest versions.

Btw, i'm rendering your scene (animation range) but it doesn't crash. I'm missing the maps, i don't know if that would to affect on the result. I've also installed the Bercon map plugin and replaced the maps used in Forest by generic bitmaps. I'm using Max 2010-64 with latest patches, Forest 3.2.8b and VRay 1.5.SP3a.

Logged

Carlos Quintero
Itoo Software
www.itoosoft.com
carlosqg@itoosoft.com
BB1610
Jr. Member
**
Posts: 72


« Reply #13 on: October 11, 2009, 01:13:47 pm »

- there is something strange going on, the scene I sent you for testing, and also the full scene i`m working just suddenly started to render, and that annoys me, cause dont know the real reason to this behaviour. I`ll keep to watch an eye on that.

- the sample scene i sent you - didn`t needed any plugins/maps ( except FP obiously Smiley ) to produce the error on our machines, we also excluded any directories related to that project & and software setup is the same as yours, so really dunno what`s going on, i really wish to have much more detailed debug from vray, or possible memmory dump of whats going on ( but that`s not your concern, but chaosgroup )

-Anyway, thanks for your efforts so far,
Radomir
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Login with username, password and session length

Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
YabbGrey By Nesianstyles | Buttons by A.M.A