Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / [STICKY] The Posting Competition

Author
Message
Randomness 128
18
Years of Service
User Offline
Joined: 13th Feb 2007
Location:
Posted: 25th Jan 2013 06:56
This sort of makes me not want to work on this at all and just return to Exotreve.

(page)

320x224
Dark Java Dude 64
Community Leader
14
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 25th Jan 2013 06:57
i adore linux

This signature is non relevant
Randomness 128
18
Years of Service
User Offline
Joined: 13th Feb 2007
Location:
Posted: 25th Jan 2013 07:03
Something in this code is being pft. I shall find it.

320x224
Dark Java Dude 64
Community Leader
14
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 25th Jan 2013 07:16


This signature is non relevant
Randomness 128
18
Years of Service
User Offline
Joined: 13th Feb 2007
Location:
Posted: 25th Jan 2013 07:18
Seems the problem only occurs when shaders are used.

320x224
Dark Java Dude 64
Community Leader
14
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 25th Jan 2013 07:28
pffffffft

Kill it with fire!

This signature is non relevant
Randomness 128
18
Years of Service
User Offline
Joined: 13th Feb 2007
Location:
Posted: 25th Jan 2013 07:33
Seems the shader must be deleted before the resolution changes, not after. That makes things a bit of a hassle when I'm trying to make it recover after something other than my program causes it to change. Well, that's enough for now. I shall sleep!

320x224
Dark Java Dude 64
Community Leader
14
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 25th Jan 2013 08:13
I must sleep, I desperately require it!

This signature is non relevant
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 25th Jan 2013 11:10
dafq

http://blankflankstudios.tumblr.com/
"Man being a noob sucks! " - OBese87
Neuro Fuzzy
18
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 25th Jan 2013 11:11
Sweet! Points!

TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 25th Jan 2013 11:14
no.[b][/b]

http://blankflankstudios.tumblr.com/
"Man being a noob sucks! " - OBese87
Neuro Fuzzy
18
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 25th Jan 2013 12:29
ok....

Also, GRAVITY!



TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 25th Jan 2013 13:08
Did you regard pressure, temperature and density Neuro? Because without that, physics is just too easy.

Speaking of which, I solved the hot air balloon problem. I'll post my stuff here when I get more time.

TheComet

http://blankflankstudios.tumblr.com/
"Man being a noob sucks! " - OBese87
_Pauli_
AGK Developer
15
Years of Service
User Offline
Joined: 13th Aug 2009
Location: Germany
budokaiman
FPSC Tool Maker
15
Years of Service
User Offline
Joined: 24th Jun 2009
Playing: Hard to get
Posted: 26th Jan 2013 00:19
Neuro Fuzzy
18
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 26th Jan 2013 03:43

The last 3 clips took 21 hours of rendering. Hopefully it will be more interesting in five days xD

TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 28th Jan 2013 12:48
@nonZero@
@nonZero@
@nonZero@
@nonZero@
@nonZero@


You should have received an e-mail from me.

TheComet

http://blankflankstudios.tumblr.com/
"Man being a noob sucks! " - OBese87
nonZero
13
Years of Service
User Offline
Joined: 10th Jul 2011
Location: Dark Empire HQ, Otherworld, Silent Hill
Posted: 28th Jan 2013 18:29 Edited at: 28th Jan 2013 18:31

@TheComet@
@TheComet@
@TheComet@
@TheComet@
@TheComet@


I did. I replied just now too.


^pic completely unrelated


Silence is golden, duct tape is silver

Attachments

Login to view attachments
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 29th Jan 2013 17:19




http://blankflankstudios.tumblr.com/
"ZIP files are such a retarded format!" - Phaelax
budokaiman
FPSC Tool Maker
15
Years of Service
User Offline
Joined: 24th Jun 2009
Playing: Hard to get
Posted: 29th Jan 2013 17:19
I couldn't get points if I wanted to.

The Zoq2
15
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 30th Jan 2013 18:22 Edited at: 30th Jan 2013 18:23
Why dont my overloaded functions work?



TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 30th Jan 2013 18:49
What error are you getting?

TheComet

http://blankflankstudios.tumblr.com/
"ZIP files are such a retarded format!" - Phaelax
The Zoq2
15
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 30th Jan 2013 18:54
The function does not take 8 parameters when I try to use the second version
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 30th Jan 2013 19:25 Edited at: 30th Jan 2013 19:32
So let me get this straight. It compiles fine, it links fine, but it spits out a runtime error message with the exact content of "The function does not take 8 parameters when you try to use the second version"? Am I safe to make this assumption?

[EDIT] In other words, it would help if you told us what compiler you're using, the exact error message you're getting, and whether it is a compiler, linker, or runtime error.

TheComet

http://blankflankstudios.tumblr.com/
"ZIP files are such a retarded format!" - Phaelax
The Zoq2
15
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 30th Jan 2013 19:37
Oh, no it does not compile, it gives me an error in the IDE and the project can't be compiled. It returns the error
Quote: "1>template.cpp(65): error C2660: 'UMenu::loadButton' : function does not take 8 arguments
"


Im using the VS2010 compiler. I think it is a compiler error
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 30th Jan 2013 19:58 Edited at: 30th Jan 2013 19:58
I can't see what's wrong. Can you post the entire class of ColorButton?

This is the code I quickly mashed together, and it's working fine:





TheComet

http://blankflankstudios.tumblr.com/
"ZIP files are such a retarded format!" - Phaelax

Attachments

Login to view attachments
The Zoq2
15
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 30th Jan 2013 19:59 Edited at: 30th Jan 2013 20:02
There, this is the whole class



and the .h file
budokaiman
FPSC Tool Maker
15
Years of Service
User Offline
Joined: 24th Jun 2009
Playing: Hard to get
Posted: 30th Jan 2013 20:02 Edited at: 30th Jan 2013 20:04
Quote: "/*void ColorButton::loadButton(int ID, int cloneID, float xPos, float yPos, float scalex, float scaley, float texty, uString text){
...
}*/"


I think I see the problem.

The Zoq2
15
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 30th Jan 2013 20:03
I just forgot to remove those comments

I fixed that and added the .h file
budokaiman
FPSC Tool Maker
15
Years of Service
User Offline
Joined: 24th Jun 2009
Playing: Hard to get
Posted: 30th Jan 2013 20:06
either way, points.

TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 30th Jan 2013 20:56 Edited at: 30th Jan 2013 21:37
So is the code working or still broken?

Just a few stylistic and structure suggestions on your code (in no particular order):

The "this" pointer



That's a cheeky way of getting around the problem of assigning the variable to itself. It's not a very nice choice to capitalise stuff just for the sake of being able to assign things, so that's why we have a "this" pointer:

(class) (note they are now no longer capital)


Then you can do this in your method:



Why is everything public?

Generally, object properties (such as colour, position, scale etc.) should be private. There is no reason for that data to be accessed from anywhere else other than inside the constructed object. Here's how I would have structured the class:



Naming convention

There is a lot of talk about this, and it would be wrong to claim that there is a "definitive way" of naming everything. What matters though is that you stick to it throughout your program.

Just as an example, I like to add a "c" in front of class names, I like to add an "m_p" in front of private member variables, and I like to stick to small camelcase with anything other than #define:



Just some food for thought. I too am pretty new to the whole C++ scene of things and am learning the ropes.

Also, listen to this.



TheComet

http://blankflankstudios.tumblr.com/
"ZIP files are such a retarded format!" - Phaelax
The Zoq2
15
Years of Service
User Offline
Joined: 4th Nov 2009
Location: Linköping, Sweden
Posted: 30th Jan 2013 22:15
Quote: "So is the code working or still broken?
"


Yes it is. Guess I should have been more clear about that

Quote: "The "this" pointer"


That's a good tip, i'll keep that in mind

Quote: "Why is everything public?"

I know that's technicaly not the best way of doing things, but right now im using some of the variables as structs. I should probably start doing it the right way when I start working on the actual game and not the editor.

Quote: "Naming convention"


Well, since im working on the project alone, I pretty much know what kind of variables I create, but I should keep that in mind.
Happy Cheesecake
15
Years of Service
User Offline
Joined: 16th Jun 2009
Location: My non-vice-presidential refrigerator.
Posted: 31st Jan 2013 01:25
So how are things?
budokaiman
FPSC Tool Maker
15
Years of Service
User Offline
Joined: 24th Jun 2009
Playing: Hard to get
Posted: 31st Jan 2013 01:44
Right now they're rather pineapple-y.

Dark Java Dude 64
Community Leader
14
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 31st Jan 2013 03:41
Things are quite thingy.

This signature is non relevant
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 31st Jan 2013 11:34
Things would be thingy if it weren't for the thing.

http://blankflankstudios.tumblr.com/
"ZIP files are such a retarded format!" - Phaelax
budokaiman
FPSC Tool Maker
15
Years of Service
User Offline
Joined: 24th Jun 2009
Playing: Hard to get
Posted: 31st Jan 2013 14:16 Edited at: 31st Jan 2013 14:17
TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 31st Jan 2013 14:18 Edited at: 31st Jan 2013 14:19
Q

http://blankflankstudios.tumblr.com/
"ZIP files are such a retarded format!" - Phaelax
nonZero
13
Years of Service
User Offline
Joined: 10th Jul 2011
Location: Dark Empire HQ, Otherworld, Silent Hill
Posted: 31st Jan 2013 22:06
988,33

I can't control everything!? Then how am I supposed to exist?


Silence is golden, duct tape is silver
budokaiman
FPSC Tool Maker
15
Years of Service
User Offline
Joined: 24th Jun 2009
Playing: Hard to get
Posted: 31st Jan 2013 22:14
Points are like cupcakes. I have them.

TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 31st Jan 2013 22:26
Cupcakes? Without my permission?

http://blankflankstudios.tumblr.com/
"ZIP files are such a retarded format!" - Phaelax
nonZero
13
Years of Service
User Offline
Joined: 10th Jul 2011
Location: Dark Empire HQ, Otherworld, Silent Hill
Posted: 1st Feb 2013 08:39 Edited at: 1st Feb 2013 09:07
298,33

.soahc ot denrut sah dlrow eht dnaaA


Silence is golden, duct tape is silver
Neuro Fuzzy
18
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 1st Feb 2013 14:23
I have several things I'm working on:

1) A 1,000,000 particle simulation involving gravity & springs, that's been chugging away for 7 days on my computer, might run for 7 more before I decide to stop it.

2) Three videos, one on dot product & angle addition & rotation matrices, one on an outline of Newtonian Mechanics, and one on an introduction to special relativity.

3) More special relativity. I'm going to post something titled "Special Relativity" just to contrast with Fluffy Rabbit. But I don't understand the stuff that well yet. Things include:

-Having a 100 foot train fit in a 50 foot tunnel. (barn & ladder paradox)
-Having a man who's walking too fast fall through a hole in a grate (barn & ladder paradox)
-Throwing a ball straight up, and having another person flying towards me observe the ball to move faster towards him than I move towards him. (headlight effect) [a side effect of this is that Force and acceleration don't have to be colinear if you view each in a different reference frame)
-Rotating an object, simply by accelerating it. (thomas precession)

What else... Maybe a rant about how A Slower Speed of Light looks very zany but doesn't demonstrate much at all about relativity (the visual effects are due to the finite speed of light, NOT necessarily due to special relativistic effects. There are relativistic corrections, but you could make a very very similar program with Newtonian calculations, so the effects shown there are nothing special)

And, of course, anything else that's cool that I run into. Ooh, like how the magnetic force can be viewed as a relativistic correction to the electric force. Oh, and about how the same thing applies to gravity http://en.wikipedia.org/wiki/Gravitoelectromagnetism (Yes, these last two bits are waywaywayway over my head)

Also, rereading fluffy rabbit's thread, I can point out some awesome things xD
Quote: "Secondly, imagine you are in a space ship. Imagine you are going very, very fast. Imagine there is a light bulb. Is the light going to lag behind the ship? No, of course not! Just like sound, the light is going to keep up with the ship's momentum, along with everything else on board the ship. Sound moves at a set speed, but when you go faster than that speed, you don't outrun it. Light works in a very similar way. Just like everything else, it has momentum and velocity. Photons are made out of solid matter."

This is word-for-word what Fresnel's drag coefficient is supposed to be. Or, equivalently, ether dragging. It's just that, since Fluffy Rabbit hates math, he can't formalize the drag coefficient to the point where he can make predictions. If he did, he'd see that his predictions had already been made, and that they've been shown to be false xD

nonZero
13
Years of Service
User Offline
Joined: 10th Jul 2011
Location: Dark Empire HQ, Otherworld, Silent Hill
Posted: 1st Feb 2013 15:35
498,33 [img][/img]


Silence is golden, duct tape is silver
Neuro Fuzzy
18
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 1st Feb 2013 15:40
You're lying...

nonZero
13
Years of Service
User Offline
Joined: 10th Jul 2011
Location: Dark Empire HQ, Otherworld, Silent Hill
Posted: 1st Feb 2013 16:01
I'm losing my touch...


Silence is golden, duct tape is silver
Neuro Fuzzy
18
Years of Service
User Offline
Joined: 11th Jun 2007
Location:
Posted: 1st Feb 2013 16:27
Oh jeez... what I said earlier about the headlight effect is incorrect. Dangit. On the bright side I have a bit of mathematica code now to handle n-d lorentz transformations. So there's that.

TheComet
17
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 1st Feb 2013 18:57
@ Neuro - That's very interesting stuff, I really look forward to seeing those videos!

TheComet

http://blankflankstudios.tumblr.com/
"ZIP files are such a retarded format!" - Phaelax
Randomness 128
18
Years of Service
User Offline
Joined: 13th Feb 2007
Location:
Posted: 1st Feb 2013 23:23
Pizza is in the oven.[center][u][/u][u][i][/i]

320x224
Dark Java Dude 64
Community Leader
14
Years of Service
User Offline
Joined: 21st Sep 2010
Location: Neither here nor there nor anywhere
Posted: 1st Feb 2013 23:23
klsjakgakldfjgkldsfjsldfjlasdjflasdkjflsdkfj

This signature is non relevant

Login to post a reply

Server time is: 2025-06-13 11:01:05
Your offset time is: 2025-06-13 11:01:05