Forums FAQForums FAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin 

I Have Some More Ideas
Goto page Previous  1, 2  
This topic is locked you cannot edit posts or make replies    DDR Freak Forum Index -> Site Feedback
View previous topic :: View next topic  
Author Message
Edible Bondage Tape
Trick Member
Trick Member


Joined: 26 Jan 2002
Location: Kerri
20. PostPosted: Tue Nov 23, 2004 10:28 am    Post subject: Reply with quote

itll still have to pull each arms image form a database somewehre then
_________________
Back to top
View users profile Send private message AOL Instant Messenger Yahoo Messenger Xbox Live Gamertag MSN Messenger
Cutriss
Staff Member
Staff Member


Joined: 24 Jan 2002
21. PostPosted: Tue Nov 23, 2004 10:30 am    Post subject: Reply with quote

You don't seriously think we have images for each of those stepcharts on the site already, do you?

They're code-generated every time you load a stepchart.

EBT, I don't mean to be mean, but if you're not familiar with how this works, maybe you should stop debating the merits of one approach versus another.
_________________

Sentient Mode is capable...
Back to top
View users profile Send private message Visit posters website AOL Instant Messenger Xbox Live Gamertag
Edible Bondage Tape
Trick Member
Trick Member


Joined: 26 Jan 2002
Location: Kerri
22. PostPosted: Tue Nov 23, 2004 10:56 am    Post subject: Reply with quote

yea thats how i thought it was done i still dont see how querrying up an on demand creation would be lighter on the server
_________________
Back to top
View users profile Send private message AOL Instant Messenger Yahoo Messenger Xbox Live Gamertag MSN Messenger
Tobias Preener
Trick Member
Trick Member


Joined: 09 Oct 2004
Location: Middle of nowhere (North Dakota)
23. PostPosted: Tue Nov 23, 2004 1:21 pm    Post subject: Reply with quote

does the groove radar include the difficulty(steps) or does that have a different term?

also, i have two other ideas. first, i think u should put age in profile. senond, i think u should put active users.(like on msn) unless u already have that for the chat room(which ive never used)

i think u should put the age in case someone wants to add someone to their messenger their age. and the senoond one would be for knowing if youre going to get a prmopt reply if u PM someone
_________________
Ned Diggers wrote:
Everytime someone frick quotes one of my frick godly posts and places it in there signature I have to change my name. I don't want any of you NERDS ruining my E-Rep by being 'friends' with me.

Brawl FC (PM me): 0989-1391-5541
Back to top
View users profile Send private message Send email AOL Instant Messenger Yahoo Messenger Xbox Live Gamertag MSN Messenger
evn
Staff Member
Staff Member


Joined: 23 Jan 2002
Location: Calgary AB
24. PostPosted: Tue Nov 23, 2004 3:56 pm    Post subject: Reply with quote

Elegant Beautiful Tran wrote:
yea thats how i thought it was done i still dont see how querrying up an on demand creation would be lighter on the server


You need to get an extra 5 characters (one for each of the 5 values on the radar) when you query the database - that's pretty much free.

You use each of those characters as a magnitude of a vector for each radar element, an you can hard-code the direction (stream = 0?, chaos = 72?, freeze = 144?, etc). It's only a handful of high-school trig calculations to convert those vectors into points on a cartesian* plane. then just connect the dots. Instant groove radar: I could probably write this up in half-an-hour once I get home.

We can also make a few assumptions:

  • Radar values will be integers between 0 and 10
  • There are only 5 different fields on the radar
  • The angle of the radar fields will not change

With that you can just pre-calculate the 50 possible coordinates and store them. Look them up when you need them so that you don't even have to do any math which may save a few CPU cycles. You can increase the accuracy of the arrays as needed or until just calculating things on demanded is faster than the lookup.

The actually drawing of radar could only be a single line of code, preparing the values maybe another 10, and setting up the image headers etc. should only be another 5 lines or so.

If performance is a serious issue you can cache the results to disk with a handful more lines of code but on casual inspection the script would be so light-weight that you wouldn't need to.

/me cracks open DreamweaverÂ…

* is that the right word? I haven't had a math class for some time now
_________________
Back to top
View users profile Send private message Visit posters website AOL Instant Messenger
evn
Staff Member
Staff Member


Joined: 23 Jan 2002
Location: Calgary AB
25. PostPosted: Tue Nov 23, 2004 8:49 pm    Post subject: Reply with quote

Input validation and error checking are for the weak.
_________________
Back to top
View users profile Send private message Visit posters website AOL Instant Messenger
Shinmizu
Staff Member
Staff Member


Joined: 24 Jan 2002
Location: Stuck in a Klein bottle
26. PostPosted: Tue Nov 23, 2004 10:49 pm    Post subject: Reply with quote

evn wrote:
Input validation and error checking are for the weak.


I prefer this one. E1.gif
_________________
For a Good time, call 555-1212 and ask for Susan. For a Great time, call 555-3487 and ask for Mindy. For a Perfect time, call 555-6341 and ask for Stephanie. For a Marvelous time, call 555-6341 and ask for Stephanie's mom.
Back to top
View users profile Send private message Visit posters website
evn
Staff Member
Staff Member


Joined: 23 Jan 2002
Location: Calgary AB
27. PostPosted: Wed Nov 24, 2004 12:36 am    Post subject: Reply with quote

Shinmizu wrote:

I prefer this one. E1.gif

Fine. I cleaned it up a bit*. Happy now? E1.gif
Now that we _can_ make groove radars we need to figure out _should_ we make them? If so: who's going to handle feeding data to the graph maker?

* I wasn't able to feed in data that would break it but it's late and I might have overlooked something.
_________________
Back to top
View users profile Send private message Visit posters website AOL Instant Messenger
Shinmizu
Staff Member
Staff Member


Joined: 24 Jan 2002
Location: Stuck in a Klein bottle
28. PostPosted: Wed Nov 24, 2004 8:07 am    Post subject: Reply with quote

evn wrote:
Happy now? E1.gif

No, you broke my concave, self-intersecting polygon. E12.gif

I think it would be better to clamp values >= 11 down to 11 instead of zeroing them out, though.
_________________
For a Good time, call 555-1212 and ask for Susan. For a Great time, call 555-3487 and ask for Mindy. For a Perfect time, call 555-6341 and ask for Stephanie. For a Marvelous time, call 555-6341 and ask for Stephanie's mom.
Back to top
View users profile Send private message Visit posters website
evn
Staff Member
Staff Member


Joined: 23 Jan 2002
Location: Calgary AB
29. PostPosted: Wed Nov 24, 2004 9:46 am    Post subject: Reply with quote

Shinmizu wrote:
I think it would be better to clamp values >= 11 down to 11 instead of zeroing them out, though.


Done.
_________________
Back to top
View users profile Send private message Visit posters website AOL Instant Messenger
Shinmizu
Staff Member
Staff Member


Joined: 24 Jan 2002
Location: Stuck in a Klein bottle
30. PostPosted: Wed Nov 24, 2004 10:22 am    Post subject: Reply with quote

evn wrote:
Done.
You are cool.

If you ever need a copy of some working C++ code for a Red-Black Binary Search Tree... nerd.gif
_________________
For a Good time, call 555-1212 and ask for Susan. For a Great time, call 555-3487 and ask for Mindy. For a Perfect time, call 555-6341 and ask for Stephanie. For a Marvelous time, call 555-6341 and ask for Stephanie's mom.
Back to top
View users profile Send private message Visit posters website
Phrekwenci
Administrator
Administrator


Joined: 27 Feb 2002
Location: New York, NY
31. PostPosted: Wed Nov 24, 2004 11:27 am    Post subject: Reply with quote

Problem.

The auto-gen Stepmania groove radar isn't exactly how DDR calculates it's values. The best example I can think of is MaxX Unlimited. On DDR the radar looks pretty clean something like this if I remember correctly. On Stepmania it looks disgusting, something like that.

I'm not sure if I like the idea of giving groove radars to songs that never had them.
_________________
Back to top
View users profile Send private message Send email Visit posters website AOL Instant Messenger Xbox Live Gamertag
Tobias Preener
Trick Member
Trick Member


Joined: 09 Oct 2004
Location: Middle of nowhere (North Dakota)
32. PostPosted: Wed Nov 24, 2004 2:03 pm    Post subject: Reply with quote

Phrekwenci wrote:
Problem.

The auto-gen Stepmania groove radar isn't exactly how DDR calculates it's values. The best example I can think of is MaxX Unlimited. On DDR the radar looks pretty clean something like this if I remember correctly. On Stepmania it looks disgusting, something like that.

I'm not sure if I like the idea of giving groove radars to songs that never had them.

if they dont have them, how could u give it to them?
and wat difficulty of max unlimmeted was that?
_________________
Ned Diggers wrote:
Everytime someone frick quotes one of my frick godly posts and places it in there signature I have to change my name. I don't want any of you NERDS ruining my E-Rep by being 'friends' with me.

Brawl FC (PM me): 0989-1391-5541
Back to top
View users profile Send private message Send email AOL Instant Messenger Yahoo Messenger Xbox Live Gamertag MSN Messenger
MPB3.Radio
Trick Member
Trick Member


Joined: 05 Dec 2002
Location: P-Town
33. PostPosted: Wed Nov 24, 2004 2:16 pm    Post subject: Reply with quote

Depending on the size of the image, the graphics might not even exceed 3kb. GD's PNG encoder is extremely efficient in my experiences. I managed to create some fairly pretty stepcharts that only weighed in around 20kb. Also, unless the generator script is really efficient or the server for it is extremely,

Also, I don't see how dynamically generating step charts on every request would be more efficient than using a caching scheme. The cost ratio of disk space to processing power would favor a caching solution or am I missing information here?
Back to top
View users profile Send private message Visit posters website AOL Instant Messenger
evn
Staff Member
Staff Member


Joined: 23 Jan 2002
Location: Calgary AB
34. PostPosted: Wed Nov 24, 2004 5:29 pm    Post subject: Reply with quote

Radio wrote:
Depending on the size of the image, the graphics might not even exceed 3kb. GD's PNG encoder is extremely efficient in my experiences. I managed to create some fairly pretty stepcharts that only weighed in around 20kb. Also, unless the generator script is really efficient or the server for it is extremely,


The example code generates images that are about 30-40kb for 440x360. I had an "ugly" version that could produce images in the 2-4kb range. All of this can change depending on the final image size and content so I'm not going to spend too much time worrying about it because we can produce images to whatever size is appropriate.

Quote:
Also, I don't see how dynamically generating step charts on every request would be more efficient than using a caching scheme.

It almost certainly isn't, but if Zend (or whatever we're using already) does a good enough job then there's no real point in spending much time on the problem. The current step chart system is pretty quick and it's working with much more data than the radar script so I'm pretty confident that things are fine as is.

As you can probably tell, I'm not too concerned about any of this because nobody knows where/if we have data to generate them anyway. I'm with Phrek in that I don't like the idea of making up data for charts that don't have them.
_________________
Back to top
View users profile Send private message Visit posters website AOL Instant Messenger
Display posts from previous:   
This topic is locked you cannot edit posts or make replies    DDR Freak Forum Index -> Site Feedback All times are GMT - 8 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB 2 © 2001, 2002 phpBB Group