Car modification script

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
Parody
Forum Contributor
Posts: 252
Joined: Fri May 06, 2005 7:06 pm
Location: Great Britain

Car modification script

Post by Parody »

This is to do with images. I was wondering what I would need to do to create a real-time car modification script. By that I mean something that can allow the user to modify a car, I was going to try and use flash but I was wondering if there were any better or easier ways to do it :?:[/url]
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

I'm about to buy a new car, or so I tell myself neverless, and all sites I've been to is indeed using flash or similar. But I guess that depends on the complexity. Exchanging images dynamicly could be sufficient (as discussed in your other thread).

Don't think there is "THE way" for these things. Those being fluent in macromedias software might not agree but.

On a personal note, I'd like to see the results of what you manage to create if you stick with any non-flash solution. So do please post progress results here.
Parody
Forum Contributor
Posts: 252
Joined: Fri May 06, 2005 7:06 pm
Location: Great Britain

Post by Parody »

Unfortunately it is for an internet game, so if I do at a later stage post it here, you will have to sign-up to see it. Maybe I will make a non-connected version. I'll get back to you. But if anyone can model me some cool cars in 3d or realistic pictures with modifications and without. Please email me:

thehoodedexecutioner@hotmail.com

Thanks

(That email address is also my MSN address.) :D
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

Thanks.

Volvo uses something that "looks" easy enough. Same car (after choosing a model that is) with edited hue effects for colors and later exchanging rims.

Flash tho, but would give you more ideas. I think that images of cars can be found simply by asking the manifacturers friendly. :wink:
Parody
Forum Contributor
Posts: 252
Joined: Fri May 06, 2005 7:06 pm
Location: Great Britain

Post by Parody »

Can I get street racing modification pictures from the manufacturers of the cars?

I would be amazed if I can :) :D

Thanks
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

Ah, street racing, ie. custom work... Missed that in your first post. No, I think not. :lol: Stock models rarely change hence the "looks easy enough" part in my post and I correct myself.
Parody
Forum Contributor
Posts: 252
Joined: Fri May 06, 2005 7:06 pm
Location: Great Britain

Post by Parody »

Its Ok.

So, my quest to find a 3d modeller that will work for free continues.

ianhnre80yr08nh98nfh9n98fsh98

(Smashes head on keyboard)
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

back to your original question...you're going to have to use flash or java for a "realtime" update of the stuff you're changing on the cars. The alternative would be to pick a color (for example) then submit to the server, and reload the page with the car the new color. It would make for a much better user experience to do in flash or a java applet (flash would be my preference) however.

go pick up a copy of swishmax or try out the flash mx 2004 demo. It's pretty easy to pick it up after playing with it for just a few mins really.
Parody
Forum Contributor
Posts: 252
Joined: Fri May 06, 2005 7:06 pm
Location: Great Britain

Post by Parody »

First I need to know if I can get the pictures which I am in the process of doing.

With flash can I intergrate php into it? So if a tickbox was ticked it would output something in php?
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

you can use actionscripting to make it populate client side vars and then submit them to send them up to the server. I believe the only way to make flash talk to a server directly is to have a flash server (forget the buzzword for it) running on your server...this usually requires that port 1935 and 443 be opened on the firewall to your server though so the server can communicate with the client, unless you wanna use ip tunnelling which will slow everythign down pretty significantly.

check out MM's site for more info on the flash server. Otherwise just use actionscripts to populate client vars.

Flash, believe it or not, has a pretty good forum here
Parody
Forum Contributor
Posts: 252
Joined: Fri May 06, 2005 7:06 pm
Location: Great Britain

Post by Parody »

Ok, I will explain everything this script needs to do.

Display an image of a car
Use tickboxes to add or remove things from the image of the car
Check the final selections
Output the selections into a MYSQL database
Redirect to another page upon the output to the database

End Of Script
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

ok, most of that should be done in flash:

create the checkboxes in the flash "movie" itself, and when they are checked, update some client side hidden form vars using actionscript. As soon as the car is the way they want it, have them click "finish" or some such which will then submit the form to your server and you can capture all of the info and dump it to your db.
Parody
Forum Contributor
Posts: 252
Joined: Fri May 06, 2005 7:06 pm
Location: Great Britain

Post by Parody »

So do I need one of those FLASH servers or something to do what you just posted?

I would have thought that would all be client-side. And then just run a php script with the options chosen at the end?
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

if you do what I suggested in my last post, you do not need a flash server. You're populating hidden form vars with actionscript and then submitting the form (just like regular html) and then you can dump whatever the values are of the hidden form vars into your db...
Post Reply