Gamestudio Links
Zorro Links
Newest Posts
Hedge on FXCM, 4 or 5?
by Martin_HH. 02/16/26 16:09
Camera always moves upwards?
by clonman. 02/16/26 11:44
Zorro version 3.0 prerelease!
by jcl. 02/12/26 14:05
MarginCost discrepancy?
by jcl. 02/12/26 14:02
CMC MT4 CFD vs FX Active - what's better?
by mayarik. 02/11/26 11:00
print a "still alive" log
by qin. 02/10/26 12:16
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
3 registered members (Martin_HH, TipmyPip, Quad), 6,658 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
ApprenticeInMuc, PatrickH90, USER0328, Sfrdragon, mayarik
19198 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