Gamestudio Links
Zorro Links
Newest Posts
Help with plotting multiple ZigZag
by degenerate_762. 04/30/24 23:23
M1 Oversampling
by 11honza11. 04/30/24 08:16
Trading Journey
by howardR. 04/28/24 09:55
Zorro Trader GPT
by TipmyPip. 04/27/24 13:50
Data from CSV not parsed correctly
by jcl. 04/26/24 11:18
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 975 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
firatv, wandaluciaia, Mega_Rod, EternallyCurious, howardR
19050 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Default Camera Material #432814
11/15/13 20:11
11/15/13 20:11
Joined: Mar 2007
Posts: 197
Y
yorisimo Offline OP
Member
yorisimo  Offline OP
Member
Y

Joined: Mar 2007
Posts: 197
When I assign a non-default material to a VIEW (camera), it no longer uses the default camera material, resulting in a much brighter scene. The simple script below shows the effect. How do I find the default camera material settings (e.g. ambient_blue, ambient_green...diffuse_blue, etc), so that I can assign them to my material.

Trying to access camera.material.ambient_blue causes the engine to crash.

Code:
#include <acknex.h>
#include <windows.h>


MATERIAL* my_mat=
{
	
}

function main()
{
	var temp;
	level_load("world.wmb");
	camera.material = my_mat; //comment out this line to see without non default material assigned
	while(1)
	{
		//temp = camera.material.ambient_blue;  //causes crash
		DEBUG_VAR(temp,10);
		wait(1);
	}	
}



Joris Lambrecht
My Contributions: Relative Rotation, Window Sizing
Re: Default Camera Material [Re: yorisimo] #432815
11/15/13 20:23
11/15/13 20:23
Joined: Mar 2007
Posts: 197
Y
yorisimo Offline OP
Member
yorisimo  Offline OP
Member
Y

Joined: Mar 2007
Posts: 197
It looks like I just have to set albedo=0; in my material to get the same look.
albedo default is 50.
The other defaults in the manual seem to be the same as the camera defaults.


Joris Lambrecht
My Contributions: Relative Rotation, Window Sizing

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1