The templates on this blog are viewed best in Internet Explorer 7.
Choose a style!
Halos
Rounded Rectangles
Soccer Field
Chrome

None

BlenderBoy's Blender Blog
Oct. 7, 2009

AI Car Explanation

  So... after fourteen months, I've decided to post again. Back in February, somebody asked me a question about the artificial intelligence of my car. Um...  I don't actually have a car; we are talking about a "virtual" car. Anyway, to the point.

   The AI is done predominately with rays as sensors, using logic bricks to transfer properties and do the actual work, and using a Python script to make sense of it all. I have a couple of screenshots to give you an idea of what I'm talking about because it would be hard to explain it all.

This is showing the invisible stuff that you don't see (was that redundant?) while running the exe.


And this is a glance behind the scenes.

   Basically, the rays (which are shown as the variously sized lines extruding from the car) send information to the Python script which determines what to do and, in turn, sends commands to the logic bricks which preform the neccessary actions (like steering, accelerating, and braking). The big pyramidal-ish object in front of the car, works in conjunction with the cube on the track to make sure the car is going in the right direction.



   Ever since that 'tragic' day in June of '08 on which I lost my Blender work, I have kind of gotten away from using Blender, but I was able to recover a very few of the lost files and I just recently remembered how much I like Blender. So, who knows... I just might start again. And, of course, Blender is getting better all the time; especially with v2.5 to come!
Comments (0) Post A Comment! Permanent Link


Aug. 5, 2008

Faking Object Shadows -- Great Camera Setup

Posted in Blender 3D
I received a comment asking how I did the shadows and camera setup in my Car Game.


Shadows: The shadows are are not actual shadows (you have to fake the shape) but are very easy to make.

 1. In the mesh that you want to have the shadow for, make a plane, subdivide it (if you need to), and make it the right shape for your object.

 2. Then, in the 'Editing' buttons (F9) and in the 'Texture Face' panel, set the faces to 'shadow'. Now they will drop strait down the global Z axis and set on the next face that they hit when you start the game engine.

 3. From what I can remember, you need to make sure the face is even, in the 'z' direction, with the object center. To get the right effect, you should also add a semi-transparent material to the shadow faces.



Camera Setup: This is a little more complicated, but all it is, is a bunch of empties and a small script.

Here is a '.blend' file with just the camera setup: Camera Setup.blend. (right click, select 'Save target/link as')

For illustration purposes:


  Empty #1: The Camera!

  Empty #2: The parent of the camera. The script sets the location of this empty to the location of Empty #3.

  Empty #3: This empty is independent. It always tracks Empty #4, and moves toward it at a certain speed. The speed is defined in the script using a certain formula which makes it faster when it is farther away and slower when it is closer.

  Empty #4: This is the main camera position. It sets it's location to the location of one of Empty #6's ray's collision points or the location of Empty #5 if there is no collision. (was that understandable?)

  Empty #5: The location of Empty #4 when there is no collision. It has a location ipo so that it will match the distances of the collision rays from Empty #6 when you change the camera distance during the game by pushing 'c'.

  Empty #6: Parent this to the object you want to follow. This also sends the rays that determine camera collisions.


On the slight chance that you were able to understand that (I'm not a very clear writer most of the time), you now have the basic functions of the setup.
Comments (22) Post A Comment! Permanent Link


Jul. 24, 2008

More Trees!

Posted in Blender Art
I have to admit, the trees in the previous post don't look that great. Here are some better ones that are not as sparse and have better proportions.

This is just a screenshot from inside the game engine (instead of a render), so the colors are probably not as good and there are no shadows. This is because, I'm not running it off of the Apricot build with GLSL. Of course this computer doesn't have a modern enough graphics card for it to work, so it wouldn't matter even if I was.

Anyway, here it is:

No, I didn't mean for the tree to be in the center of the path!
Comments (2) Post A Comment! Permanent Link


Jul. 9, 2008

Trees

Posted in Blender Art
There's not much to say about these trees except that I plan to create a script or something that will randomize the number and position of the branches.

Comments (1) Post A Comment! Permanent Link


Jun. 20, 2008

Chevy Camaro Concept Car - Modeling Process

Posted in Blender Art

This entry will take you through a not-so-detailed process of modeling a car.

 

Click on each picture to see it full size because it probably won't be clear unless you do.

 

 

The Car

 

 

 

Started at 9:40PM, June 18

 

 

I have a box that is the basic size and has the right number of edge loops.

 

The edge loop that runs down the middle of the car now has it's shape.

 

A render of a little more sculpting around the edge.

 

Finished section at 10:15PM, June 18

 

 

Started section at 5:25AM, June 19

 

A lot more detail on the top.

 

Finished section at 6:15AM, June 19

 

 

 

 

Took 1hr 25min in all to get this.

 

 

 

 

Started section at 10:05PM, June 19

 

Finished the entire main shape of the car.

 

Rendered

 

Finished section at 10:32PM, June 19

 

 

 

Now, the next morning, (from 9:15 to 10:10), I had finished all the little details of the car when the computer shut down. I hadn't saved in a while so I lost it all back to the above picture. But I got it all back except the last ten minutes of work because Blender had auto saved it.

 

 

 

Started section at 10:50AM, June 19

 

Details finished - Solid mode in Blender.

 

Details finished - Wireframe mode in Blender.

 

A render of the finished details.

 

Finished section at 11:05AM, June 20

 

 

Started section at 11:10AM, June 20

 

I then added textures and made a weird small scene.

 

Final render from the front.

 

Final render from the back.

 

Finished at 1:00PM, June 20

 

Hope you enjoyed!

 

Comments (3) Post A Comment! Permanent Link


Jun. 16, 2008

Unfortunate Happening

Bad news (at least for me). I discovered yesterday that the USB flash drive that I keep all my Blender stuff on, got corrupted! I lost almost three years of work. I think it has something to do with the fact that the computer that I work on the most, clicks off from time to time without warning.

 

Unfortunately, I didn't have the files backed up anywhere. So, a little piece of advice: make sure any files that you really want are backed up somewhere.

 

Now, this dosn't mean that I lost any thing that you can download from this blog. Only that I can't make them any better.

Comments (1) Post A Comment! Permanent Link


Jun. 11, 2008

Car Game: Demo 2

Posted in Blender Games

The next great demo release is here!!!  Just kidding, it is here but it's not necessarily great.

 

There are a few upgrades: a second level, a few more camera options (see the readme), and some cheat codes! (that's all I can think of right now)

 

 A couple of fixes that were suggested from last version: slower turning, no backing up camera.

 

Here's the link: Car Demo2.zip

Size: 11.3 MB

Just download and unzip. Be sure to read the 'readme' especially if you didn't play demo1.

 

If you have problems, questions, comments, or suggestions, let me know.

Comments (3) Post A Comment! Permanent Link


Feb. 5, 2008

Lightsaber In Two Different Programs

A few weeks ago, I wanted to see how long it would take me to make a certain object in both of two different programs. I decided to model my brother's toy lightsaber.

 

The first program I did it in was Gmax and this was the result.

It turned out better than I expected seeing as I hadn't had a lot of experience in that program.

 

The second program was Blender and this was the result.

Now, if this picture looks better than the other one, as far as quality goes, it is because Blender has a built in renderer and Gmax doesn't. So I had to print the screen into paint and save it from there.

 

I can't remember, (although I could at the time) but I think it took three or four hours to make it in Gmax and only thirty minutes to an hour in Blender. A pretty big difference, mostly due to the fact that I don't have as much experience in Gmax.

 

Comments (16) Post A Comment! Permanent Link


Feb. 4, 2008

Tags

Posted in Random

I haven't been doing any tags up till now but since I have little else to post about I will post some tags. However, I don't what them to show on my home page here so I will set the time of the post to before all my earliest posts (so they will show on the bottom of my blog) and put them under the 'Tags' category. Click on the 'Tags' link in the links section on my sidebar to view them.

Comments (4) Post A Comment! Permanent Link


Jan. 9, 2008

Technical Difficulties

Posted in Template

Edit: Ok, everything seems to be working now so I have turned the script back on. Yay! 

Comments (2) Post A Comment! Permanent Link


Jan. 6, 2008

Christmas Tree

I hope everybody had a great Christmas and new year.

 

I made this scene just over three years ago, back when I was just learning about 3D modeling. Back then I didn't know about Blender and I was using a program called Gmax. My brother helped me with this one (like most things back then) or it wouldn't have turned out nearly as good.

 

 

I have a new template for my blog now. You can view it by clicking the 'Soccer Field' radio button on the left top corner of the page.

Comments (6) Post A Comment! Permanent Link


Nov. 21, 2007

Car Game: Playable Demo

Posted in Blender Games

I know, I am finally posting after almost six months.  I guess I'm a pretty bad blogger.

 

 I have a playable demo of my car game. Just download the 'Car Demo1.zip' folder, unzip it, then read 'Readme.txt'.

 

Download: Car Demo1.zip

Size: 7.32MB

 

I am open to questions, comments, and suggestions.

 

By the way, I got the new smilies from this post on BlenderNation.com.

I might add another template soon.

Comments (15) Post A Comment! Permanent Link


Jun. 7, 2007

AI Player -- Blog Award

Posted in Blender Games

AI Player

Here is a demo of the AI Player. It will probably crash (hit the wall) a few times. It may even get stuck.

 

To download, click here: AICar.zip  Size: 5.43MB

Note: AICar.exe will not run unless folder is unzipped.

 

 

Blog Award

My blog was entered in and won a contest hosted by DoubleTalk!

Here is the award:

Thanks!

Comments (27) Post A Comment! Permanent Link


May. 25, 2007

Template Poll

Posted in Template



BTW, the halo template has nothing to do with the game 'Halo'.

Comments (2) Post A Comment! Permanent Link


May. 23, 2007

Template

Posted in Template

Ok, I finally got the template changer thing to work.  If you want to change the template, just click one of the options in the top left corner of this page. Right now there are only three options: Halo (default), Rounded Rectangles, and None (no style sheet). I hope to add more later.

 

If anybody has trouble with it please let me know.

 

Comments (2) Post A Comment! Permanent Link


May. 16, 2007

Live Action/Animation Combination Test - AI Player for my Car Game

Posted in Random

Live Action/Animation Combination Test

This is something I did a few weeks ago. I got the idea from Matt's blog (check out his post). He added live action to a scene he made with Blender which is much harder than what I did. I did it the other way around.

 

Here it is:

detonation.avi

Size: 4.56MB -  Duration: 0min 11sec

 

Here is a screenshot of me making the objects:

 

Combining the live action and animation:

 

AI Player for my Car Game

 I have decided that I need an AI (Artificial Intelligence) Player for my Car Game to make it really fun. So that's what I've been working on lately. Unfortunately making one of those is VERY hard to do. If I had to guess how much time I've spent on it in the last few weeks I would say probably 20hrs or more. Right now I have it where it can do basic turns and it knows when to slow down (most of the time ). The main problem that I have right now is how to get it to turn around when it is going the wrong way. Hopefully I'll be able to fix that soon.

 

If I can get it to work right I'll post a demo of it.

 

 

P.S. Blender 2.44 was recently released!!!

Comments (2) Post A Comment! Permanent Link


Apr. 5, 2007

Template Upgrade

Posted in Template

I am currently fixing/upgrading my template; some things may not work right now.

 

I hope to make it so you can select a template to view my blog in.

Comments (5) Post A Comment! Permanent Link


Mar. 27, 2007

Ferrari

Posted in Blender Art

This is the first car I have ever made that actually looks somewhat realistic. It took me less than two days to make. The main reason I made this is because, like I said in the last post, I really needed a more realistic car for my game. I think it's quite an improvement.

 

 

 

Comments (7) Post A Comment! Permanent Link


Feb. 28, 2007

New Explosion -- Game Update

Posted in Random

New Explosion

  This is the same explosion as the last one (see last post) but, of course, used in a different scene. I animated the blocks using the Blender Game Engine. It took me a while to find a way to make the stack of blocks explode. I tried writing a Python script but it kept giving me an error whenever I added the "applyImpuse()" method. (I still don't know why ) The way I did it was when the missle object collided with the blocks, it would instantly turn invisible and grow to about five times it's original size forcing the blocks to move outward. It's not a very consistent method but it worked.

 

  Anyway, after that I just added the explosion objects to the scene. When it came time to render I calculated it would take about 15-20 hours to render the 600 frames on the computer I was using! So my brother offered to let me use his computer which is about four times faster! I accepted for obvious reasons. I don't know exactly how long it took to render because it started at 9:30 P.M. and I went to bed before it was done, but I had calculated it would take about 4-5 hours. When I woke up in the morning it was done.

 

Here it is:

 

Here is a screenshot:

A frame from the explosion animation!

 

 


 

 

Game Update

  This is an update on the car game.

 

  I haven't done a whole lot of work on this game since the last time I posted about it (see above link). I've been thinking about totaly reconstructing the HUD to make it show a speedometer and stuff like that. In fact I even got to the point where I thought I needed to get or even make a new vehicle script. I didn't like the one I was using mainly because it didn't slide when you would go fast and turn sharply. Now this may sound pretty obvious, but the script had a property called "friction" set very high at "100.00"; I didn't think to turn that down, lol.

 

  So by way of more scripting I fixed the friction thing, got brakes, and even got gears for the car. Now I really need to get a more realistic looking car.

 

Later,

BlenderBoy

Comments (6) Post A Comment! Permanent Link


Feb. 2, 2007

Explosion Animation

Posted in Animations

I made this explosion using particles. It could probably use some work:

explosion

 

Click here to view the animation of the explosion: explode0001_0100.avi

 

Comments (1) Post A Comment! Permanent Link


About Me

My name is Stephen. I am a Christian, homeschooled fifteen-year-old. The goal of this blog is to display some of the graphics I have created via Blender.

Blender is an open source 3D graphics creation program. It lets you create high quality 3D graphics and movies, and replay real-time, interactive 3D content. It is extremely fun!

Links

Home
View my profile
Archives
Email Me
My Blog's RSS
Tags
Blender Web Site
Blender Tutorials
BlenderNation.com


(yes, it's free!)

Friends

Because my friends list was getting too long for easy navigation down my side bar, I have changed it so it will not be there by default. You can turn it on and then off again by pressing this button.
BlogBoy
AnAmericanGirl
LibertyandJustice
Disneylandguy
chimpzrool
ILoveBaseball
TMoore
MBF
treehouseisland
Jonathan
msquid
IceJet
girlonfire
rejoiceinhope
purpleprincess
NOSboy11
antelopehead
MasterWindu
Politicalguy
JesusLovesU
BlenderBoyTestingBlog
Mater
pcboy
quadguys
Patches
poprocksandcoke42
mbullard
tylerscrashsite
teenforchrist
crazy4jesus
dtalkers
FABLEBOY101
Yankees213
Catcher818

Joyful24
bluidprinces
wings
Alainia
Karrinna16
greenpeppermint

Other

Page 1 of 1
Last Page | Next Page








These are all the recent main pictures on this blog.
Click the button below, then click a picture to see it full size.