Show materials in viewport

3D Studio Max Plugin (Export Script Plugins developed by [gk] and KilaD; Integrated Plugin developed by Karba)
Forum rules
Please post only in English in this subforum. For alternate language discussion please go here http://render.otoy.com/forum/viewforum.php?f=18
Post Reply
Ibon_83
Licensed Customer
Posts: 9
Joined: Tue Jan 07, 2014 12:13 pm

Hi Octane forum friends. First of all, I apologize if this question has been asked before.

My question is: Is there any way to show all materials in viewport (textures and/or colors) after octane material conversion?

I use to apply V-ray materials to my geometry, and when i want to make a render with Octane, after material conversion everything becomes white. I have to go to all materials one by one and activate "Show shaded material in viewport", and i was wondering if there's an easier way to do it.

I have tried with material editor's menu (Material --> Show Materials in viewport as --> Shaded materials with maps) but it doesn't work, everything stays white. Btw, i'm using 3DsMax 2014

Thanks in advance for your help!
akira
Licensed Customer
Posts: 94
Joined: Sun May 30, 2010 4:33 pm

run the attached maxscript in max :)

Code: Select all

-- show texture map in viewport for all octane diffuse and glossy materials
-- supports viewport display of RGB Image, Alpha Image and Greyscale Image
fn get_texture_map tex_map= 
(
	if classof tex_map == RGB_Image or classof tex_map == Alpha_Image or classof tex_map == Greyscale_Image then
	(
		return tex_map
	)
	else if classof tex_map == Multiply_Texture or classof tex_map == Mix_Texture then
	(
		if tex_map.texture1_tex != undefined then return get_texture_map tex_map.texture1_tex
			else if tex_map.texture2_tex != undefined then return get_texture_map tex_map.texture2_tex
		
	)
	return undefined
)

for ii in SceneMaterials do 
(
	if classof ii == Diffuse_Material or classof ii == Glossy_Material then
	(
		if ii.diffuse_tex != undefined then 
		(
			jj = get_texture_map ii.diffuse_tex
			if jj != undefined then showtexturemap ii jj on
		)
	)
)
also you can disable texture showing by changing the "on" to "off"
Attachments
showOctaneDiffuseMap.zip
(519 Bytes) Downloaded 251 times
BKEicholtz
Licensed Customer
Posts: 80
Joined: Tue Dec 07, 2010 11:14 pm

This is very helpful, thank you. I did not know this was possible.
ASRock Extreme11 | i7 3970x 5.0 Ghz | 32gb RAM | (4) EVGA SC Titans
HHbomb
Licensed Customer
Posts: 1376
Joined: Wed Jun 30, 2010 8:45 pm
Contact:

Thanks a lot.
Hope otoy give us more access to Scripting !
YOKO Studio | win 10 64 | i7 5930K GTX 3090 | 3dsmax 2022.3 |
coilbook
Licensed Customer
Posts: 3032
Joined: Mon Mar 24, 2014 2:27 pm

i have same problem with Mix materials they are all pure black in 3ds max viewport because octane does not have an option yet. I hope they will add a button
User avatar
acc24ex
Licensed Customer
Posts: 1481
Joined: Fri Mar 19, 2010 10:58 pm
Location: Croatia
Contact:

nice one..
Ibon_83
Licensed Customer
Posts: 9
Joined: Tue Jan 07, 2014 12:13 pm

Many many thanks my Akira!!!
Post Reply

Return to “Autodesk 3Ds Max”