Sounds tricky, any particular reason you're using OpenAL and AVAudio? (Why not just use one or the other? I'm curious because I'm only using AVAudio for my game, and I've never used OpenAL before)zeid wrote:Thanks for the feedback guys.I'm using a C++ wrapper for most of my obj-c code. In terms of frameworks, OpenGL for graphics, OpenAL for sound effects, and AVAudio for background music. I actually have gotten over most of my issues. But will likely be rewriting my entity manager Which was cleverly conceived, but is to complicated for what I am trying to do/I'm sinking too much time into fixing it.You said you were having some problems with your iPhone game? What API/libraries/frameworks are you using?
Zeid's Epic Art Thread
Moderator: PC Supremacists
- Innerscope
- Chaos Rift Junior
- Posts: 200
- Joined: Mon May 04, 2009 5:15 pm
- Current Project: Gridbug
- Favorite Gaming Platforms: NES, SNES
- Programming Language of Choice: Obj-C, C++
- Location: Emeryville, CA
- Contact:
Re: Zeids Epic Art Post
Current Project: Gridbug
Website (under construction) : http://www.timcool.me
Website (under construction) : http://www.timcool.me
Re: Zeids Epic Art Post
AVAudio is being used for background music as it supports significantly larger sound lengths than OpenAL. However AVAudio also causes a fair bit of lag whenever you go to play a different sound, this makes it unsuitable for much else other then background music in a realtime game on iPhone. OpenAL is harder to implement then AVAudio but if I want I can extend what I have and add 3d sound.
- Innerscope
- Chaos Rift Junior
- Posts: 200
- Joined: Mon May 04, 2009 5:15 pm
- Current Project: Gridbug
- Favorite Gaming Platforms: NES, SNES
- Programming Language of Choice: Obj-C, C++
- Location: Emeryville, CA
- Contact:
Re: Zeids Epic Art Post
I see your point in using OpenAL for 3D sounds. Although you can use AVAudio for sound effects in real-time. (my game is real-time, has sounds going off simultaneously, etc)zeid wrote:AVAudio is being used for background music as it supports significantly larger sound lengths than OpenAL. However AVAudio also causes a fair bit of lag whenever you go to play a different sound, this makes it unsuitable for much else other then background music in a realtime game on iPhone. OpenAL is harder to implement then AVAudio but if I want I can extend what I have and add 3d sound.
Code: Select all
AVAudioPlayer *sfxPlayer = //initialization;
[sfxPlayer prepareToPlay];
Current Project: Gridbug
Website (under construction) : http://www.timcool.me
Website (under construction) : http://www.timcool.me
-
- Chaos Rift Demigod
- Posts: 991
- Joined: Thu Nov 13, 2008 3:16 pm
- Current Project: Elysian Shadows
- Favorite Gaming Platforms: Amiga, PSOne, NDS
- Programming Language of Choice: C++
- Location: Sweden
Re: Zeids Epic Art Post
Very nice characters I love them!
Re: Zeids Epic Art Post
Not really art... Playing with shaders in CG. Per-vertex lighting, per-pixel lighting and bump mapping all with optional multiple lights. Also loading in .ASE files and generating their normals. Ugly looking stuff but I'm sure I will improve it later on and have a crack at making a interesting 3d engine.
Re: Zeids Epic Art Post
Here's a link to get the program.
Download
Download
- GroundUpEngine
- Chaos Rift Devotee
- Posts: 835
- Joined: Sun Nov 08, 2009 2:01 pm
- Current Project: mixture
- Favorite Gaming Platforms: PC
- Programming Language of Choice: C++
- Location: UK
- MrDeathNote
- ES Beta Backer
- Posts: 594
- Joined: Sun Oct 11, 2009 9:57 am
- Current Project: cocos2d-x project
- Favorite Gaming Platforms: SNES, Sega Megadrive, XBox 360
- Programming Language of Choice: C/++
- Location: Belfast, Ireland
- Contact:
Re: Zeids Epic Art Post
Looks really nice man
http://www.youtube.com/user/MrDeathNote1988
"C makes it easy to shoot yourself in the foot. C++ makes it
harder, but when you do, it blows away your whole leg." - Bjarne Stroustrup
"C makes it easy to shoot yourself in the foot. C++ makes it
harder, but when you do, it blows away your whole leg." - Bjarne Stroustrup
-
- Chaos Rift Junior
- Posts: 345
- Joined: Tue Jan 12, 2010 7:23 pm
- Favorite Gaming Platforms: PC - Windows 7
- Programming Language of Choice: c++;haxe
- Contact:
Re: Zeids Epic Art Post
I'm probably doing something utterly wrong, but...
---------------------------
creating vertex program from file
---------------------------
v_VertexLighting.cg(51) : warning C7011: implicit cast from "float4" to "float3"
v_VertexLighting.cg(56) : error C5013: profile does not support "for" statements and "for" could not be unrolled.
-
- Respected Programmer
- Posts: 387
- Joined: Fri Dec 19, 2008 3:33 pm
- Location: Dallas
- Contact:
Re: Zeids Epic Art Post
What video card have you got?
Cg gets VERY quirky sometimes....especially w/ ATi, and even more especially w/ OpenGL. To the point that its completely unusable.
Cg gets VERY quirky sometimes....especially w/ ATi, and even more especially w/ OpenGL. To the point that its completely unusable.
-
- Chaos Rift Junior
- Posts: 345
- Joined: Tue Jan 12, 2010 7:23 pm
- Favorite Gaming Platforms: PC - Windows 7
- Programming Language of Choice: c++;haxe
- Contact:
Re: Zeids Epic Art Post
It just happens to be an ATI 5770. =D
-
- Respected Programmer
- Posts: 387
- Joined: Fri Dec 19, 2008 3:33 pm
- Location: Dallas
- Contact:
Re: Zeids Epic Art Post
Ah, yeh then there's essentially no way in hell you'll be able to use CG w/ OpenGL on there.
ATi's driver is a very very strict enforcement driver and he's probably either compiling under an nvidia profile or a deprecated OpenGL/ARB profile for which the ATi driver will not generate correct code.....or even generate code at all.
GLSL is really the only way to go w/ ATi + OpenGL
Kinda sucks, I prefer the HLSL/Cg syntax.
ATi's driver is a very very strict enforcement driver and he's probably either compiling under an nvidia profile or a deprecated OpenGL/ARB profile for which the ATi driver will not generate correct code.....or even generate code at all.
GLSL is really the only way to go w/ ATi + OpenGL
Kinda sucks, I prefer the HLSL/Cg syntax.
- Lord Pingas
- Chaos Rift Regular
- Posts: 178
- Joined: Thu Dec 31, 2009 9:33 am
- Favorite Gaming Platforms: NES, SNES, Nintendo 64, Dreamcast, Wii
- Programming Language of Choice: C++
- Location: Hiding In My Mum's Basement With My Pokemon Cards
Re: Zeids Epic Art Post
Your artwork is simply beautiful.
Re: Zeids Epic Art Post
Cheers.
Is it worth learning GLSL over CG? from what i saw the two are ridiculously similar (as with HLSL and other non-assembly based shader languages). For that matter is it worth learning an assembly based shader language?
Also is there a definitive way to programming correctly in C++ all I see are different approaches, obviously there will be one way more appropriate then the other, can anyone share some light to the most appropriate, most efficient approach to C++ design/programming Paradigms. My uni does a poor job of teaching paradigms. Tonight I tried to describe a delegate method to a friend, he got the syntax, and derived class stuff but didn't seem to snap to the 'delegate method' statement do other unis teach this better? Fux Australia is to focussed on simulation and not on games/programming.
Is it worth learning GLSL over CG? from what i saw the two are ridiculously similar (as with HLSL and other non-assembly based shader languages). For that matter is it worth learning an assembly based shader language?
Also is there a definitive way to programming correctly in C++ all I see are different approaches, obviously there will be one way more appropriate then the other, can anyone share some light to the most appropriate, most efficient approach to C++ design/programming Paradigms. My uni does a poor job of teaching paradigms. Tonight I tried to describe a delegate method to a friend, he got the syntax, and derived class stuff but didn't seem to snap to the 'delegate method' statement do other unis teach this better? Fux Australia is to focussed on simulation and not on games/programming.
Last edited by zeid on Sun Apr 04, 2010 4:09 am, edited 1 time in total.
-
- Respected Programmer
- Posts: 387
- Joined: Fri Dec 19, 2008 3:33 pm
- Location: Dallas
- Contact:
Re: Zeids Epic Art Post
If you plan on sticking to OpenGL, then you absolutely need to learn GLSL. Cg is completely useless when it comes to OpenGL, none of the hardware profiles work right. It does not support any of the newer profiles. The runtime is not good at generating code that works for ATi, its just a lose-lose. The cross vendor Cg support for the Direct3D API is far better.
Also, GLSL is not similar to HLSL/Cg at all really. It is HLSL that shares syntax verbatim with Cg. Unfortunately there's no good cross API shader alternative other than GPU assembly (which is essentially the same across vendors). Learning GPU assembly CAN be worth it, but for the most part nobody writes shaders in assembly anymore. Sometimes you can spot optimizable pieces of code where the high level compiler sortof falls on its face and optimize the assembly.... this does happen occasionally.
Also, GLSL is not similar to HLSL/Cg at all really. It is HLSL that shares syntax verbatim with Cg. Unfortunately there's no good cross API shader alternative other than GPU assembly (which is essentially the same across vendors). Learning GPU assembly CAN be worth it, but for the most part nobody writes shaders in assembly anymore. Sometimes you can spot optimizable pieces of code where the high level compiler sortof falls on its face and optimize the assembly.... this does happen occasionally.