pouët.net

Go to bottom

My first demo, yeah!

category: offtopic [glöplog]
Gargaj: Done, i've removed it
No i didn't, how to do it? :/
You "removed it"? With a hex-editor? o_O
added on the 2012-03-12 00:18:18 by Gargaj Gargaj
Hey Blacksheep8Bit it worked fine for me (I only tried the original exe from your oneliner) - Windows 7 Home Premium SP1, NVIDIA GeForce GT 520.

I was disappointed that there was no more after the two camera switches. You seem to be calling this 'three scenes' when I'd call it only one. Besides that, I liked it and the music is really good!
added on the 2012-03-12 00:24:28 by fizzer fizzer
I didn't read your last post, so i through it was a lib i had to remove in the linking section of Visual c++, now i know that the shit just got real,

how am i supposed to do this? Can't i just remove the lib that requires the dll in the Visual C++? Why microsoft can't make things nice and clean? D:
There's no "easy" way to resolve CRT dependencies, unfortunately. Right now I can think of the following methods:
1. Link statically - easy but exe will be way too big.
2. Not use CRT / build your own - this can get tricky / annoying, especially because of the FTOL / MATH.H stuff. You tick in the "Ignore default/standard libraries" in your VS2010 project settings, you compile it, and then you hack the source until it links together.
3. Link to an older msvcrt.lib - this is kludge-tastic, but it works rather painless in most cases. The Crinkler readme.txt has a guide on how to do this, but it doesn't go into too much detail.
added on the 2012-03-12 00:25:23 by Gargaj Gargaj
fizzer: 3 Scenes = 3 Camera changes, and there are a lot of variations between each scene, and the first one it's not the same as the third one, since the third one theres a distance variation ( sin(t *pi/360)*30 + 10 )

Thats why i am not releasing it as a prod, because i first need to know if it works, then i make more parts in it. tl;dr?
Wrong formula, fail...

sin(t*3.1415/360)*20 + 36.0f
Gargaj: Yeah, i will new to take another day without sleeping to solve this :/
Gargaj: What about this: http://msdn.microsoft.com/en-us/library/3tz4da4a.aspx?

Can't i just use:
NODEFAULTLIB:msvcrt.lib
NODEFAULTLIB:msvcrtd.lib
([url = "libs that require dlls list"]http://msdn.microsoft.com/en-us/library/abx4dbyh(v=vs.100).aspx[/url]
sheepy: That's what I wrote as Option 2 - the problem is then you have to come up with your own sin() / cos() / etc. functions.
added on the 2012-03-12 00:36:26 by Gargaj Gargaj
Gargaj: At first, it was difficult to make a window, so i studied days and made my first one, then it was hard to understand opengl, i studied and i did it too, how to use multisampling? i studied and did it too! How to use shaders (opengl 2.0)? I Copied from Qi and did it too (lol)

Now i have to write my own Sin and Cos functions? I give up




LOL jk, looks like i have to study more maths (or force everybody to download those dlls...)
Or you could just not care about the 64k limit and link statically for the time being.
added on the 2012-03-12 00:46:29 by Gargaj Gargaj
Gargaj: Ignore the 64k limit? What if i want to join a party? :/
Most parties have an unlimited (or 100mb or similar huge limit) size demo compo. You probably won't get that much from code alone. Also, most compos have a rule that the productions should be new - don't show it around beforehand :)

I just realized your avatar doesn't have a huge afro/sideburns but it's the sheeps body. Wow.
added on the 2012-03-12 01:03:10 by msqrt msqrt
sheepy: If you're hellbent on making a 64k, well, in the worst case you can hit me up in an email and I can help. :)
added on the 2012-03-12 01:04:04 by Gargaj Gargaj
Gargaj: Next week i will release this, this is a promise, i will figure it out, the same way i did with everything else! HELL YEAH!

msqrt: You know... i am not surprised since it took me 1 hour to figure that i was drawing a man's afro, not a sheep, and i have an afro, the irony it's big with this one right?...
You don't have to write your own sin/cos. Just use the appropriate CPU instructions. Besides, it's not that hard writing one either. On platforms on which calculating sin/cos on the fly isn't feasible you usually use lookup tables with linear interpolation for sin and cos.

Good luck finishing with your first release.

Also my first 64k was 50% a statically linked libcrt. Thank god for UPX.
added on the 2012-03-12 13:33:41 by musk musk
IQ's 64k framework contains sin and cos functions that don't rely on external dependencies. It's worth having a look at those, they will probably help you out.
added on the 2012-03-12 13:48:15 by raizor raizor
here you go:
Code: // sin() float ASMsinf(float i) { __asm fld i __asm fsin } // cos() float ASMcosf(float i) { __asm fld i __asm fcos } // sqrt() float ASMsqrtf(float i) { __asm fld i __asm fsqrt } // fmod() float ASMfmodf(float i, float j) { __asm fld j __asm fld i __asm fprem __asm fxch __asm fstp i } // fabs() float ASMfabsf(float i) { __asm fld i __asm fabs }


chaos/fb has a nice page about intrinsics here:
intrinsics
Your biggest problem is going to be ftol.
added on the 2012-03-12 14:09:33 by Gargaj Gargaj
... Check the link a bit more carefully. Or did I miss something? :)
added on the 2012-03-12 15:14:40 by msqrt msqrt
Downloaded from the forum.
Win7 x64
GF 560 Ti, twin monitors, fullscreen ==> Audio + Video work fine.

Good for you !
added on the 2012-03-12 17:04:32 by cxnull cxnull
hardy: and as you can see, the stuff you linked to does not blatantly implement stuff such as sin/cos which in vc are true intrinsics.

so once again: http://www.xyzw.de/c190.html

added on the 2012-03-12 18:31:36 by superplek superplek
It runs on Linux / wine xD (x64, Geforce 9800Gtx+)
added on the 2012-03-12 23:20:01 by neop neop

login

Go to top