ambiera home ambiera home

Ambiera Forum

Discussions, Help and Support.

Create a new account, Search, or Login:
Name:  Password:
Ambiera Forum > CopperCube > Help with CopperCube
Ingame Graphics Option
Author Text

Hellclaw2099
Guest
Quote
Yesterday

Is there a way to create graphics option in the pause menu/main menu ingame?


j9907
Registered User
Quote
Yesterday

It depends on what you mean by "graphics option". You can definitely give players the ability to enable / disable bilinear filtering (so textures are sharper, but pixelated - I'll be giving this option with my game), disable post-processing (bloom, colorize, vignette, etc..) and fog.

If you want to let the player disable fog you'd do something like this. Add this code to the scene-root and with a scene which has fog:

Behaviors triggered by events > When a key is pressed do something - select a key. For this case let's select F

Action: Special > Execute JavaScript

and add this code:

var root = ccbGetRootSceneNode();

ccbSetSceneNodeProperty (root, "Fog", false);



Hellclaw2099
Guest
Quote
Yesterday

by graphics options,i mean stuff like fog,textures,shadows,water reflections etc..................(atleast some of them)


j9907
Registered User
Quote
Today

As I said above, you can disable many things and fog is one of them. Real-time shadows can be disabled, too. For water nodes, you can simply hide them if the user wants to (and it'd be smart to add this since they're very resource-intensive (especially if you have more than 1 - more than that WILL slow down your game!). You could go even further and make static planes which have water textures which have animated textures and give the user an option to use low or high-quality water.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "Int?rnational" (you are not logged in)


Text:

 

  

Forum Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   





Software: Ambiera Light Forum. © 2008-2019 Nikolaus Gebhardt, Ambiera e.U.