Introduction to Maya - Rendering in Arnold
This course will look at the fundamentals of rendering in Arnold. We'll go through the different light types available, cameras, shaders, Arnold's render settings and finally how to split an image into render passes (AOV's), before we then reassemble it i
# 76 22-10-2007 , 11:50 PM
t1ck135's Avatar
Registered User
Join Date: May 2004
Location: UK
Posts: 1,991
ah, I get you user added image
It would be quite straightforward to add an inner lane changing method - effectively the reverse look to what the outer lane check is doing. It might affect the real time performance a little but it is definitely worth trying user added image

The bunching is currently based on the (hardcoded) speed of the particle at the front of each lane so it might not actually happen in a simulation. When the curve is created (using 'chord length' then this gives an overall length which the calculations use. If the default curve setting 'uniform' is used the it sets the length of the curve as 0 to 1 (instead of say 0 to 46.5 units) and this makes the vehicles speed up and slow down based on the distance between points. Once its all working I'll experiment with the uniform option so that effect becomes part of the system.

I was toying about with the requirement for some vehicles to want to leave the road at certain exits. This would be pretty similar to the opposite lane changing by adding a random 'get off at the next exit' variable. If 'on' then it keeps checking the distance to the exit and keep attempting to move to the inner lanes till it gets there, even if it started out as an outer lane speed maniac user added image

Si


Examples of bTraffic - a traffic animation tool for Maya
bFlocking - a tool for Maya 8.5+ to generate flocking and swarming behaviours
Jan/Feb Challenge 2007 Entry and W.I.P
May/Jun Challenge 2006 Entry and W.I.P
Mar/Apr Challenge 2006 Entry and W.I.P
Jan/Feb Challenge 2006 Entry and W.I.P
Nov/Dec Challenge 2005 Entry and W.I.P
Sep/Oct Challenge 2005 Entry and W.I.P
Jul/Aug Challenge 2005 Entry
www.flash-fx.net
# 77 22-10-2007 , 11:57 PM
happymat27's Avatar
Subscriber
Join Date: Jul 2004
Posts: 1,257
That's a bit clever Si,

nice one!

Just out of interest... what happens when the particles reach the end of the road?

Mat.

# 78 23-10-2007 , 12:33 AM
arran's Avatar
Registered User
Join Date: Dec 2005
Location: Brooklyn, NY
Posts: 3,708
yeah - definitely think that changing lanes to the right and left will help make this more convincing, as will adding vehicles exiting - keep at it mate - this is going to look excellent!user added image

# 79 23-10-2007 , 01:01 AM
mirek03's Avatar
Subscriber
Join Date: Feb 2006
Location: Australia
Posts: 2,752
im still watching too user added image


take it easy and life will be easy
# 80 23-10-2007 , 02:28 AM
t1ck135's Avatar
Registered User
Join Date: May 2004
Location: UK
Posts: 1,991
cheers guys user added image

Mat - at the minute they just have a hardcoded lifespan. The idea being that as new ones start, old ones die and the system performance should stabilise as numbers become fairly steady. Of course if you had thousands of vehicles on a huge road then it would get very slow! (and need to be cached).
Thanks for reminding me that they need to die as they reach the end. In later versions they could skip onto a roundabout or another road and keep going.

I'm not too sure how the 'multiple road system' would work regarding the particles - would I have a single particle emitter that populates all roads or one for each road? If it was the former then it would have to have user defined controls to vary the initial starting flow so you could have some busy and some fairly empty. If the latter then how do I make all the different particle groups interact? One to think about user added image

Luckily for the animation all I need are the current workings (fine tuned) with random vehicle assignment, more random speeds, the ability to add a locator as an obstacle and possibly (though not necessary) the ability to leave the motorway at a junction.

Si


Examples of bTraffic - a traffic animation tool for Maya
bFlocking - a tool for Maya 8.5+ to generate flocking and swarming behaviours
Jan/Feb Challenge 2007 Entry and W.I.P
May/Jun Challenge 2006 Entry and W.I.P
Mar/Apr Challenge 2006 Entry and W.I.P
Jan/Feb Challenge 2006 Entry and W.I.P
Nov/Dec Challenge 2005 Entry and W.I.P
Sep/Oct Challenge 2005 Entry and W.I.P
Jul/Aug Challenge 2005 Entry
www.flash-fx.net

Last edited by t1ck135; 23-10-2007 at 02:35 AM.
# 81 23-10-2007 , 04:53 AM
gster123's Avatar
Moderator
Join Date: May 2005
Location: Manchester Uk
Posts: 6,300
Looks cool man!

I''m just in the process of setting my "building blocks" for my programme, finding it pretty fun!


"No pressure, no diamonds" Thomas Carlyle
# 82 23-10-2007 , 02:11 PM
mirek03's Avatar
Subscriber
Join Date: Feb 2006
Location: Australia
Posts: 2,752
just went to your site and noticed te flocking tool.., did you ever get it to render??


take it easy and life will be easy
# 83 24-10-2007 , 12:56 AM
t1ck135's Avatar
Registered User
Join Date: May 2004
Location: UK
Posts: 1,991
cheers steve - looking forward to see how you do user added image

mirek - yep, pre 2008 you need to hardware render them (which can be a problem if your gfx card isn't up to scratch like mine). With 2008 you can render through mental ray.
A further option I was going to play with was messing with regenerating generic polygon information from the particle cache data, basically storing the position info and then adding models into it that I know would render normally.
Thats on the backburner at the minute till I get this traffic tool going and have made some tests for the animation user added image

Si


Examples of bTraffic - a traffic animation tool for Maya
bFlocking - a tool for Maya 8.5+ to generate flocking and swarming behaviours
Jan/Feb Challenge 2007 Entry and W.I.P
May/Jun Challenge 2006 Entry and W.I.P
Mar/Apr Challenge 2006 Entry and W.I.P
Jan/Feb Challenge 2006 Entry and W.I.P
Nov/Dec Challenge 2005 Entry and W.I.P
Sep/Oct Challenge 2005 Entry and W.I.P
Jul/Aug Challenge 2005 Entry
www.flash-fx.net
# 84 25-10-2007 , 11:47 AM
t1ck135's Avatar
Registered User
Join Date: May 2004
Location: UK
Posts: 1,991
another update (got carried away tonight hence the stupidly late posting - 2am) user added image

It's now got left hand changing in (as suggested by arran) and varied particle speeds. Together they mean that the traffic flow regulates itself and shows some normal motorway driving behaviours user added image
The front particles arent currently tied into doing all the behaviours so look at all the others behind them.

bTraffic both lane changing

Si


Examples of bTraffic - a traffic animation tool for Maya
bFlocking - a tool for Maya 8.5+ to generate flocking and swarming behaviours
Jan/Feb Challenge 2007 Entry and W.I.P
May/Jun Challenge 2006 Entry and W.I.P
Mar/Apr Challenge 2006 Entry and W.I.P
Jan/Feb Challenge 2006 Entry and W.I.P
Nov/Dec Challenge 2005 Entry and W.I.P
Sep/Oct Challenge 2005 Entry and W.I.P
Jul/Aug Challenge 2005 Entry
www.flash-fx.net

Last edited by t1ck135; 25-10-2007 at 11:51 AM.
# 85 25-10-2007 , 11:51 AM
arran's Avatar
Registered User
Join Date: Dec 2005
Location: Brooklyn, NY
Posts: 3,708
ha ha ha - excellent - nice job mate! user added image user added image

# 86 25-10-2007 , 12:12 PM
mirek03's Avatar
Subscriber
Join Date: Feb 2006
Location: Australia
Posts: 2,752
cool on all fronts mate.

as far as the power of the PC.., just got a new mobo, CPU, power supply.., blah blah.., new video card.., Gforce 8500GT.., havent installed (rebuilt) it all yet.

your doing some aMAZING stuff here mate


take it easy and life will be easy
# 87 31-10-2007 , 11:07 AM
t1ck135's Avatar
Registered User
Join Date: May 2004
Location: UK
Posts: 1,991
Busy busy, so this is not much of an update.
Bug fixing, performance improvements and smoothing off lane changing - bit like the latest Maya versions user added image

smoothed lane changing

Think I'm going to add in a locator or the option to control a specific particle and run some tests for one of the scenes in the animation. Then it'll be back to modelling and animating which I've been missing.

Si


Examples of bTraffic - a traffic animation tool for Maya
bFlocking - a tool for Maya 8.5+ to generate flocking and swarming behaviours
Jan/Feb Challenge 2007 Entry and W.I.P
May/Jun Challenge 2006 Entry and W.I.P
Mar/Apr Challenge 2006 Entry and W.I.P
Jan/Feb Challenge 2006 Entry and W.I.P
Nov/Dec Challenge 2005 Entry and W.I.P
Sep/Oct Challenge 2005 Entry and W.I.P
Jul/Aug Challenge 2005 Entry
www.flash-fx.net
# 88 10-12-2007 , 08:30 AM
t1ck135's Avatar
Registered User
Join Date: May 2004
Location: UK
Posts: 1,991
Ah, finally I've got back to this after a 2 1/2 month group project that took all my time up.
I'm just getting my head back into the code but am making progress already user added image

This step shows the beginnings of a user interface and allows the user to set a number of vehicle types to be used in the animation. This basically means you can drop your own vehicles etc in, select them and then have them randomly generated on the road.
There are some additional controls (not activated yet) that will allow you to change the road style (left hand drive or right), how many lanes are in use and more.
The vehicle type chooser will have a percent amount or slider so that you can change the amount of certain types of vehicles - e.g, if its a busy road near a port then you would increase the truck vehicle frequency etc...

https://www.youtube.com/watch?v=bYuV79cQ-KA

Simon


Examples of bTraffic - a traffic animation tool for Maya
bFlocking - a tool for Maya 8.5+ to generate flocking and swarming behaviours
Jan/Feb Challenge 2007 Entry and W.I.P
May/Jun Challenge 2006 Entry and W.I.P
Mar/Apr Challenge 2006 Entry and W.I.P
Jan/Feb Challenge 2006 Entry and W.I.P
Nov/Dec Challenge 2005 Entry and W.I.P
Sep/Oct Challenge 2005 Entry and W.I.P
Jul/Aug Challenge 2005 Entry
www.flash-fx.net
# 89 10-12-2007 , 08:52 AM
gster123's Avatar
Moderator
Join Date: May 2005
Location: Manchester Uk
Posts: 6,300
Hey Si

Looks cool mate!

Ive been sorting out a nice place to stop for the christmas holidays. Then its back into it next year!

cheers

Steve


"No pressure, no diamonds" Thomas Carlyle
# 90 10-12-2007 , 12:54 PM
t1ck135's Avatar
Registered User
Join Date: May 2004
Location: UK
Posts: 1,991
Cheers Steve user added image

Are you hanging around in Manchester for the holidays or partying somewhere else?
Hows the studying been going? Figured out any more mad tracking algorithms for drunken people yet?? user added image

Simon


Examples of bTraffic - a traffic animation tool for Maya
bFlocking - a tool for Maya 8.5+ to generate flocking and swarming behaviours
Jan/Feb Challenge 2007 Entry and W.I.P
May/Jun Challenge 2006 Entry and W.I.P
Mar/Apr Challenge 2006 Entry and W.I.P
Jan/Feb Challenge 2006 Entry and W.I.P
Nov/Dec Challenge 2005 Entry and W.I.P
Sep/Oct Challenge 2005 Entry and W.I.P
Jul/Aug Challenge 2005 Entry
www.flash-fx.net
Posting Rules Forum Rules
You may not post new threads | You may not post replies | You may not post attachments | You may not edit your posts | BB code is On | Smilies are On | [IMG] code is On | HTML code is Off

Similar Threads