Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - blanchg

Pages: 1 ... 26 27 [28]
406
I am having trouble with environment textures:

Code: [Select]
File: ..\..\CoronaStandalone\maps\Maps.cpp
Line: 123
Condition: uvMapper
Build timestamp: Aug  8 2016 12:57:04, OS: Microsoft Windows 7 Professional (6.1.7601)

Using this in the scn file:
Code: [Select]
  <environment>
    <map class="Texture">
      <image>C:\Chocofur_Free_HDR_01\Chocofur_Free_HDR_01.jpg</image>
    </map>
  </environment>

Same thing happens using a .hdr file

Thanks!

407
btw what are you using the standalone for? ;)

I forked Joels blender exporter and have the majority of it working correctly, there are still a few areas that need to be cleaned up:
  • Matrials UI
  • Add new node based maps
  • Implement new binary object exporter

https://bitbucket.org/blanchg/render_corona/overview

Thanks for the quick replies it has made this process much easier !!

408
globalMedium works great fully specified

1. Ok thanks for the info, will modify the material preview output
2. It was some funny behavior of Python that prevented me from seeing this works (had to use bufsize=1 and universal_newlines=True).  This improves the material preview speed quite a bit.
3. The documentation is actually very good and I appreciate that it is there at all!
Only the Native material has some changes that aren't in the documentation
Native Material
alphaMode Missing
bsdfFlags Missing
displacement Missing (assume map)
castsShadows Not Available

<reflect>
bsdfType Missing

<volume>
sssMode Missing

Thanks once again for your help with this.

409
A few more questions:

1. using -mtlPreview how can I specify material maps correctly? Do I have to inline all their definitions? This can be quite tricky for some complex graphs

2. using -mtlPreview the documentation says that writing \0 to the stream will trigger the render and leave the process running.  I can't seem to trigger that, it appears that closing stdin is the only way to trigger the render and it exits the process.

3. the https://corona-renderer.com/wiki/standalone/mtl-maps doesn't appear to be up to date with the standalone executable, is that because I am using a preview version?  If so is there any info on when updated documentation might become available?

Thanks very much for any feedback.

410
It appears that using a globalMedium causes a crash on the last build.

This is the assertion that fails:
Code: [Select]
File: ..\..\CoronaLib\io\XmlValidator.cpp
Line: 68
Condition: &validatedNode
Build timestamp: Aug  8 2016 12:57:04, OS: Microsoft Windows 7 Professional (6.1.7601)

I attached a small demonstration scene to reproduce the error.

Remove the globalMedium definition and the scene works

411
That works like magic :)

Making some good progress now.

Thanks

412
Diffuse textures work inside the standalone render but I can't get it to work with the -matPreview

The tex.png file is there and works with a normal scene that uses the same material format

Command
Code: [Select]
Corona_Release.exe -mtlPreview
License info:
Demo license active.
Activated until: 2016-08-18

0.30 232 253 C:\dev\matpreview.png
<material class="Native"><diffuse><map class="ToneMap"><child><map class="Texture"><image>C:\dev\tex.png</image><uvMap><mode>uvw</mode><scale>1.00 1.00 1.0</scale><offset>0.00 0.00 1.0</offset></uvMap></map></child><multiplier>1.00</multiplier></map></diffuse><reflect><color>1.00 1.00 1.00</color><glossiness>1.00</glossiness><ior>8.00</ior></reflect></material>
^Z

ERROR: Fatal error in mtl-XML file: 'STDIN': Texture with file name: 'c:/dev/tex.png' not found/not accesible

Many thanks!

413
That is excellent thanks!  The material preview now works correctly.  Now I need to get the rest of the properties exporting correctly

414
I have cloned what Joel started and have some basic scenes/mesh lights/materials going but my biggest problem right now is a crash during the material preview.

I attached the minidump from the crash and here is my material preview

Command
Code: [Select]
Corona_Release.exe -mtlPreview < matpreview.stdin
matpreview.stdin
Code: [Select]
1.0 200 150 matpreview.png <materialDefinition name="Preview"><material class="Native"><diffuse>0.18 0.18 0.18</diffuse><reflect><color>0.09 0.06 0.43</color><glossiness>0.13</glossiness><ior>8.00</ior></reflect></material></materialDefinition>
As you can see this is pretty much the most basic material to render

Corona version:
BUILD_DATE: Apr 10 2016 21:01:27, internal color space: Wide RGB
Defines:

Pages: 1 ... 26 27 [28]