Pages: « 1 2 3
  Print  
Author Topic: Main Progress [Stalled because we can't Git]  (Read 10905 times)
Offline (Unknown gender) TheExDeus
Reply #30 Posted on: March 27, 2012, 12:41:15 PM

Developer
Joined: Apr 2008
Posts: 1872

View Profile
Yes.
Logged
Offline (Female) IsmAvatar
Reply #31 Posted on: March 27, 2012, 03:36:31 PM

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 886

View Profile Email
development_side_effect2.gmk
Compiles. Displays game window for very brief moment. Then terminates prematurely with exit code 0, and no visible error.

reflections_surface.gmk
Same behavior as above.

sun_rays_room_technique V2.gmk
Does not compile. Reports the following error:
Code: [Select]
Check `object0::create...Syntax error in object `object0', Create event:0:
Line 7, position 6 (absolute 134): Invalid assignment to function `time'
Logged
Offline (Unknown gender) TheExDeus
Reply #32 Posted on: March 27, 2012, 03:51:34 PM

Developer
Joined: Apr 2008
Posts: 1872

View Profile
Thats weird. Does your PC support FBO's? The function surface_is_supported() should return true.

The syntax error is because for some unknown reason linux and/or mac's have "time" as a function. On windows you can use it as a variable just fine (it doesn't highlight as a function either). Download it again. I just renamed the variable.

Also, I don't know if the GIT version works at all, as I can't run it on Win. Until people fix that, I will not be able to really fix problems like these.
Logged
Offline (Female) IsmAvatar
Reply #33 Posted on: March 27, 2012, 04:01:53 PM

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 886

View Profile Email
The updated version yields the same results as the other two now.

surface_is_supported() returns 0.
Logged
Offline (Unknown gender) TheExDeus
Reply #34 Posted on: March 27, 2012, 05:39:07 PM

Developer
Joined: Apr 2008
Posts: 1872

View Profile
Yeah, then you sadly don't support FBO's. :( Can anyone else test with a different GPU?

Also, the surface_is_supported() function was made just for this reason. So it wouldn't crash unexpectedly or just show a black screen. I could just check for support and fallback gently. I didn't do it in the examples though.

What GPU do you have? I guess its a laptop?
« Last Edit: March 27, 2012, 05:40:39 PM by HaRRiKiRi » Logged
Offline (Male) DarkAceZ
Reply #35 Posted on: March 27, 2012, 06:00:56 PM

Member
Location: United States
Joined: Dec 2011
Posts: 75

View Profile
The updated version yields the same results as the other two now.

surface_is_supported() returns 0.
Actually, there IS an error. In the terminal: "Adding background: 1Extension NOT supported!!"


<JoshDreamland> DarkAceZ: means HaRRi's surface functions won't work for you
Logged
My Goodness! Is it 4:30? I'm supposed to be having a back, sack and crack!

[edit]
Offline (Female) IsmAvatar
Reply #36 Posted on: March 27, 2012, 06:50:14 PM

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 886

View Profile Email
I have a motherfucking brand new NVidia GeForce GT 430. Is there some sort of spec you need to look for when buying them to make sure it supports FBOs, because this thing supports everything short of DirectX 12.

DarkAceZ: I didn't see that error.
« Last Edit: March 27, 2012, 06:52:44 PM by IsmAvatar » Logged
Offline (Unknown gender) TheExDeus
Reply #37 Posted on: March 28, 2012, 05:47:35 AM

Developer
Joined: Apr 2008
Posts: 1872

View Profile
Quote
Actually, there IS an error. In the terminal: "Adding background: 1Extension NOT supported!!"
This error is no longer shown. It just shows if GLEW is loaded or not, and if it is, then you can check support with the is_supported function.

Ok, so there was a little fuck up. The part where glew is initialized is this:
Quote
    #ifdef _WIN32
      GLenum err = glewInit();
      if (GLEW_OK != err)
      {
        std::cout<<"GLEW ERROR!"<<std::endl;
      }
      std::cout<<"GLEW LOADED!"<<std::endl;
    #endif
So this meant that only windows had them. Its weird that it can run without errors (just return 0's I guess) even without init. Although I can't remember if this #ifdef was because of necessity (glew support) or just because I can't test nothing on linux.

Try downloading this file: http://dl.dropbox.com/u/21117924/Surfaces/OPENGLStd.cpp
and putting it in: \ENIGMAsystem\SHELL\Graphics_Systems\OpenGL
Then you might get some GLEW errors but I don't know.

And yes, 430 should support FBO's just fine. Only VERY old cards and some kind of old laptop cards don't support them. I have Geforce 8800 which is about 5-6 years old (and now costs pennies) and I can support them just fine. I have a laptop with some ATI mobile radeon and it can support them as well.

edit: -DarkAceZ- could also test this. Maybe this is why he had the extension not supported error before (that is if he runs linux). Easier would be to run on windows and just try to launch the already compiled exe's I gave. Then see if they run fine. Maybe even trough Wine it could work (Josh uses it all the time with ENIGMA).
« Last Edit: March 28, 2012, 01:58:34 PM by HaRRiKiRi » Logged
Offline (Unknown gender) Game_boy
Reply #38 Posted on: March 28, 2012, 06:10:52 PM
Member
Joined: Apr 2008
Posts: 228

View Profile
I have a motherfucking brand new NVidia GeForce GT 430.

lol, you realise that is a low end card? I hope you didn't buy it expecting it to be fast.
Logged
Offline (Unknown gender) TheExDeus
Reply #39 Posted on: March 28, 2012, 07:05:43 PM

Developer
Joined: Apr 2008
Posts: 1872

View Profile
But it still supports everything. The speed is not the issue, its the specification. That one supports DX11 as well as GL 4.2, while mine 8800 supports DX10 with only GL 2.1. So if I can use FBO's, then she certainly can (and almost anyone can, so I don't get why Josh had his panties in his ass when I told him I want GLEW and FBO's for surfaces). For now it seems that maybe the previous results when some who tried had errors about extensions not supported, in really had the support and only the code was flawed. I am interested to see if the fixed .cpp fixes it.
Logged
Offline (Female) IsmAvatar
Reply #40 Posted on: March 28, 2012, 09:53:45 PM

LateralGM Developer
LGM Developer
Location: Pennsylvania/USA
Joined: Apr 2008
Posts: 886

View Profile Email
Game_boy: like Harri said, I bought it for spec (and price), not speed. I wanted something that could play Skyrim. With settings turned to low, it runs great, so I'm very happy with my purchase.

Harri: ~~~Snip: 3 images showing all 3 examples work~~~
« Last Edit: March 29, 2012, 01:40:10 PM by IsmAvatar » Logged
Offline (Unknown gender) TheExDeus
Reply #41 Posted on: March 29, 2012, 02:46:34 AM

Developer
Joined: Apr 2008
Posts: 1872

View Profile
So it runs great. Sweet. I guess I will have to update that file in the git. Anyone else who previously were having problems  should also try this.
Logged
Pages: « 1 2 3
  Print