Gamestudio Links
Zorro Links
Newest Posts
Blobsculptor tools and objects download here
by NeoDumont. 03/28/24 03:01
Issue with Multi-Core WFO Training
by aliswee. 03/24/24 20:20
Why Zorro supports up to 72 cores?
by Edgar_Herrera. 03/23/24 21:41
Zorro Trader GPT
by TipmyPip. 03/06/24 09:27
VSCode instead of SED
by 3run. 03/01/24 19:06
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (degenerate_762), 1,098 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
sakolin, rajesh7827, juergen_wue, NITRO_FOREVER, jack0roses
19043 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
shade-c inverted effect default, or glitch? #450564
04/18/15 01:17
04/18/15 01:17
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline OP
Serious User
DLively  Offline OP
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
Hey Guys!

Im messing around with shaders right now, and Im looking into shade c to learn some further lite-c / general programming - and also to get the results of this awesome tool!

Problem is, when I start it up I get an inverted look to it.. Perhaps someone knows what this glitch is??

It can be seen with your eyes, in video here: Click to change websites

I tried figuring it out myself but it seems to be beyond my scope of knowledge with shade-c at the moment.. I've traced it all the way back to
Code:
sc_setup(sc_screen_default);



I've used shade-c in the past and didn't have this problem before. I downloaded what I'm pretty sure is the latest version on github. Click to goto Github

Any thoughts?

Last edited by DLively; 04/18/15 01:18.

A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: shade-c inverted effect default, or glitch? [Re: DLively] #450587
04/19/15 04:51
04/19/15 04:51
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline OP
Serious User
DLively  Offline OP
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
Hmm.. I added it to another project, and didn't get the same results.. so it may just be something else in my project - however the shadows still didn't work either.

any thoughts?


A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: shade-c inverted effect default, or glitch? [Re: DLively] #450596
04/19/15 07:47
04/19/15 07:47
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
I can only guess so:
1.) You´re using skills that shade-c uses, so they interfere and cause unexpected results (as far as I know shade-c uses skill99)
2.) You initialized something wrong
3.) Your graphic card does´nt support those effects


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: shade-c inverted effect default, or glitch? [Re: DLively] #450600
04/19/15 09:44
04/19/15 09:44
Joined: Oct 2004
Posts: 900
Lgh
rojart Offline
User
rojart  Offline
User

Joined: Oct 2004
Posts: 900
Lgh
Hi DLively!

Try alphablendenable = false; in sc_gBuffer_sky.fx file, should work.


Regards, Robert

Quote
Everything should be made as simple as possible, but not one bit simpler.
by Albert Einstein

PhysX Preview of Cloth, Fluid and Soft Body

A8.47.1P
Re: shade-c inverted effect default, or glitch? [Re: rojart] #450612
04/19/15 15:35
04/19/15 15:35
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline OP
Serious User
DLively  Offline OP
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
Thanks for your help Guys.
@ Alibaba: I changed the skills to lower numbers, and I dont use skill99 after reading the shadec documentation.
I've used shade c before, and have been successful with it.. My video card should be able to handle at least the min settings with an Nvidia GeForce G210 1024MB - I know its not a big video card, but it works for now.. Though my pc says I have 2303 MB total available graphics memory...

@Rojart: Thanks for your response, I tried your suggestion and have no further luck with it.

http://youtu.be/kf9zA9dpmNU


A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: shade-c inverted effect default, or glitch? [Re: DLively] #450626
04/19/15 16:58
04/19/15 16:58
Joined: Oct 2004
Posts: 900
Lgh
rojart Offline
User
rojart  Offline
User

Joined: Oct 2004
Posts: 900
Lgh
strange, because shade-c works fine for me with my changes.

Try also vec_set(sun_color, vector(200,200,200)); maybe it helps, otherwise an simple example from you would be great.


Regards, Robert

Quote
Everything should be made as simple as possible, but not one bit simpler.
by Albert Einstein

PhysX Preview of Cloth, Fluid and Soft Body

A8.47.1P
Re: shade-c inverted effect default, or glitch? [Re: rojart] #450629
04/19/15 17:58
04/19/15 17:58
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline OP
Serious User
DLively  Offline OP
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
Would using the most current version of A8 (8.45.4) be the problem?

The above didin't work.
I'll try it again with another game laugh

Edit: then, If all else fails ill send you a demo laugh I really appreciate your help Rojart!

Last edited by DLively; 04/19/15 18:05.

A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com
Re: shade-c inverted effect default, or glitch? [Re: DLively] #450630
04/19/15 18:04
04/19/15 18:04
Joined: Mar 2012
Posts: 927
cyberspace
W
Wjbender Offline
User
Wjbender  Offline
User
W

Joined: Mar 2012
Posts: 927
cyberspace
...removed ... I have no idea how my reply ended up here

Last edited by Wjbender; 04/19/15 19:16.

Compulsive compiler
Re: shade-c inverted effect default, or glitch? [Re: Wjbender] #450732
04/21/15 16:16
04/21/15 16:16
Joined: Apr 2005
Posts: 1,988
Canadian, Eh
DLively Offline OP
Serious User
DLively  Offline OP
Serious User

Joined: Apr 2005
Posts: 1,988
Canadian, Eh
The above changes do not be made, so there is no need to alter the fx file.

To fix this problem I had to make sure that default.fx and common.h were in my project folder and included to the script - The big problem was that I had not realized I was supposed to add a material to EVERYTHING in the level. So i added mtl_leveldefault, and everything worked great from there laugh

You need to look at 07.c shadec sample and have a look at 06_transparent.fx (mtl_carWindow) to see how transparency (alpha channels) is handled.

Last edited by DLively; 04/21/15 16:17.

A8 Pro 8.45.4
YouTube: Create Games For Free
Free Resources: www.CGForFree.com

Moderated by  Blink, Hummel, Superku 

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