MoI discussion forum
MoI discussion forum

Full Version: Cycles for MoI

Show messages:  1-9  10-29  30-49  50-69  70-89  90-109  110-113

From: Max Smirnov (SMIRNOV)
7 Feb 2015   [#30]
New version.
Shaders support:
[D:xx] - Diffuse : Roughness 0-100
[G:xx] - Glossy : Roughness 0-100
[S:xx] - Glass : Roughness 0-100
[V:xx] - Velvet : Sigma 0-..
[C:xx] - Toon : Smooth 0-100
[T] - Translucent
[E:xx:xx] - Emission : Strength 0-... : Size (for point light sources; optional)

Added mix shader:
[G:10 C:30] - Glossy:10+Toon:30 (50/50 default)
[G:10 C:30 70] - Glossy:10+Toon:30 (30/70)
From: Finema
8 Feb 2015   [#31] In reply to [#20]
It's possible to do the same for mac ?
From: Max Smirnov (SMIRNOV)
8 Feb 2015   [#32]
Added:
[A] - Ambient occlusion
fixed point lights export bug

Finema
chippwalters
>>Does anyone know if this works with the Mac?
Unfortunately I don't have a Mac, so I can't check this.
I'll try to install MacOS to virtual machine.

>>Seems the render Window size is not kept if this size modified at the beginning for the next renders!
It's impossible to get window size information from cycles to moi.
From: Frenchy Pilou (PILOU)
8 Feb 2015   [#33] In reply to [#32]
<< It's impossible to get window size information from cycles to moi.

I speek about the Window's size render of Cycles: who can be anywhere on the same monitor or on another one
so not in the screen of Moi !
From: Fake Pilot (FAKEPILOT)
8 Feb 2015   [#34]
OSX:

I managed to get Cycles standalone running on OSX, also managed to write out an .xml file into the temp folder with your script!
Then with Terminal, I rendered it with Cycles. With this script:

/Applications/MoI\ v3.app/Contents/Resources/drive_c/moi/cycles/cycles /Applications/MoI\ v3.app/Contents/Resources/drive_c/users/Wineskin/Temp/ball_square_scene.xml

But not a programmer, so didn't understand how to edit your script so it does this automatically.

http://blender.dingto.org/cycles_standalone/Cycles_OSX_10.9_x86_64.zip
From: Frenchy Pilou (PILOU)
8 Feb 2015   [#35] In reply to [#34]
When you say that
"Then with Terminal"
How do you process for access to a "terminal" ?
From: Fake Pilot (FAKEPILOT)
8 Feb 2015   [#36] In reply to [#35]
Oh, in Applications > Utilities - you will find the Terminal app.

With the Terminal app opened, you can drag your Cycles standalone app there (to get it's location), then add a space and then drag your xml file to the Terminal window and hit enter.
This will render your xml in Cycles standalone on OSX.

Did this very fast test, to see if it worked. Pretty sweet render of glass in 30 seconds on a laptop! Like the Cycles renderer! :-D

Image Attachments:
moi_cycles_osx_test_01.png 


From: Finema
8 Feb 2015   [#37] In reply to [#36]
What's the way to process ball_square_scene.xml
?
From: Frenchy Pilou (PILOU)
9 Feb 2015   [#38]
Can we imagine have some cursors in Moi for input the Different shaders against input them by hands?
And what about textures ?
From: Hamish Mead (HAIRYKIWI)
9 Feb 2015   [#39]
Very nice work Max! Thank you very much! :)

I had a few problems, described below, which might be a bug with the MoI script - and/or help someone else.
A big problem remains however: Cycles still isn't writing the png image to the snapshots folder despite reporting that it is, (see the screen capture below). Any ideas appreciated.

My Win7(64) was reporting compatibility issues:
- The first script didn't work, other than the Cycles window flashing open-closed after I specified the mesh geometry in MoI.
- The second script seemed to work for a while, then, after pressing Q to save and quit from Cycles, Win7 reports Cycles had terminated incorrectly and was searching for a solution; nothing saved either.
- Next time Cycles started, Win7 told me it was applying compatibility settings.
- Thereafter, pressing Q in Cycles displays a message saying it's saving the png in the MoI3.0\snapshots folder, but no file is actually saved there.
- Now I'm right back to the beginning - the Cycles window flashes open and closed after specifying the mesh geometry.

Somewhere along the way (above) I changed the script to "Cycles noexport". At first it seemed to work, then in the Cycles window that flashed open-closed, I could read "xml file not found" or words to that effect. Changing the script back to "Cycles" got it working again.

Cycles reports "Writing Image", but no file is created:


Cheers,
hairykiwi

Image Attachments:
Screenshot 2015-02-09 12.53.18.png 


From: Frenchy Pilou (PILOU)
9 Feb 2015   [#40]
<< pressing Q to save and quit from Cycles, Win8 reports Cycles had terminated incorrectly and was searching for a solution

Idem for the Q key !
From: Hamish Mead (HAIRYKIWI)
9 Feb 2015   [#41] In reply to [#40]
Hi PILOU
Sorry, I don't understand: What is "Idem"?
From: Max Smirnov (SMIRNOV)
9 Feb 2015   [#42]
Fake Pilot
>>But not a programmer, so didn't understand how to edit your script so it does this automatically.
Wait for a new version which supports manual folder settings.

Frenchy Pilou
>>Can we imagine have some cursors in Moi for input the Different shaders against input them by hands?
Not now.

hairykiwi
Try to run MoI with administrator rights. Your Program files/MoI/.. folder is write protected.
It will be better if you'll wait for the new version. With this version you can move cycles and snapshots folders everywere you want.
From: Mauro (M-DYNAMICS)
9 Feb 2015   [#43] In reply to [#41]
Hi :)

idem is a latin word that means : "the same of "

@Pilou
Idem for the Q key !

means: " same thing for " Q key


M
From: Hamish Mead (HAIRYKIWI)
9 Feb 2015   [#44]
Max, thanks.
I tried running Cycles as admin, but not MoI - I'll give it a go. In any case, a snapshots folder outside the Program Files folder is much more preferable - looking forward to that, thank you.

Mauro,
Doh! Sometimes, even when seemingly hard-wired to the net, I overlook using a search engine to make up for my poor language skills. Thanks for educating.

Here's a bit of trivia: rather coincidentally, while I was learning/working on a MoI script earlier today, I thought, 'Where does the word 'factory' actually come from?" Searching for "factory etymology" shows the Latin factorium is literally, ‘oil press’; the English language makes more and more sense all the time, after discovering its roots. :)
From: Max Smirnov (SMIRNOV)
9 Feb 2015   [#45]
version 0.98 :)

Added:
[TR] - transparent shader
[CH] - checker texture

Default material changed to [V:100] Velvet
Increased default background brightness

Now script stores location of the cycles.exe in the moi.ini. You need manually choose a location of the cycles.exe.
Also you need to create "output" subdirectory in the cycles directory.
Use "_cycles reset" command to reset script settings.


From: Frenchy Pilou (PILOU)
9 Feb 2015   [#46] In reply to [#45]
French Manual Updated :)
http://moiscript.weebly.com/cycles-pour-moi.html

And what about Textures ?
From: bisenberger
9 Feb 2015   [#47]
Cool stuff!!! thanks for posting.
From: Max Smirnov (SMIRNOV)
10 Feb 2015   [#48]
Finally, v.1.0
Optimized emission styles export.



Pilou, this script is good for beginners, and maybe for fast(test) rendering. But I don't see any reason to make a material library in the MoI or textures support.
There are many good render programs which do it much better.
From: Frenchy Pilou (PILOU)
10 Feb 2015   [#49] In reply to [#48]
No problem! :)

Show messages:  1-9  10-29  30-49  50-69  70-89  90-109  110-113