Gamestudio Links
Zorro Links
Newest Posts
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
FXCM => AVA Trade Plugin???
by Martin_HH. 11/17/26 17:02
contractUpdate() is filtering if >2 rows
by mistery. 11/09/26 12:06
New Zorro version 3.15
by jcl. 11/09/26 09:24
Removing outliers from files
by jcl. 11/04/26 10:30
[MED] Import from FBX (2010) missing!!!
by rayp. 11/03/26 14:33
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (LucasJoshua, rht, 1 invisible), 30,450 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rht, MaliceTheMaker, Haitao_Ren, JimSimons, julienp
19249 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 | 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