2019-01-01 snapshot

Post anything about MX Simulator here. Please. I'm begging you.
jlv
Site Admin
Posts: 14910
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: 2019-01-01 snapshot

Post by jlv »

DJ99X wrote:I managed to get a list of all the keys out. A couple of suggestions for your next round of additions:

Move billboard - I think this would be handy for animating a few things like dust, rain etc. Include a transparency factor
Play Sound - Play a sound, location based, % volume
Rider Wheel Spin (velocity) - Do things like play sound based on acceleration spin or braking sliding
All good ideas. For the wheel spin sounds (or chain sounds as Dabz suggests), that's actually something that I wouldn't mind hard coding into the game since it's something you'd want all the time. Putting that in the track script wouldn't make that much sense unless it was something special for the track.
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
DJ99X
Posts: 15523
Joined: Tue Jan 15, 2008 11:36 am
Location: Land Down Under

Re: 2019-01-01 snapshot

Post by DJ99X »

OK, I'm starting to get my head around the bone movements. I've realised that you pretty much have to define the bone centers as per how they are in blender, then set the bone position as the same if you want to get static rotation from the bone center.

Image

Code: Select all

function pose(seconds) {
	var statue_index = 0;
	var bone_count = 9;
	var a = 0.5*(Math.sin(seconds * 2)+1);
	var b = 250
	var bone_centers = [ -1.5, 0.8, 0, 1.5, 0.8, 0, -0.4, 0.8, 0, 0.4, 0.8, 0, 0, -3.8, 0, 0, -3.8, 0, 0, -0.9, 0, 0, -0.9, 0, 0, 0, 0 ];
	var bone_positions = [ -1.5, -0.5*a+0.8, 0, 1.5, -0.5*a+0.8, 0, -0.4, -0.5*a+0.8, 0, 0.4, -0.5*a+0.8, 0, 0, -3.8, 0, 0, -3.8, 0, 0, -0.5*a-0.9, 0, 0, -0.5*a-0.9, 0, 0, -0.5*a, 0 ];
	var bone_rotations = [
	Math.cos(a*Math.PI/8), -Math.sin(a*Math.PI/8), 0,
	Math.sin(a*Math.PI/8), Math.cos(a*Math.PI/8), 0,
	 0, 0, 1,
	Math.cos(-a*Math.PI/8), -Math.sin(-a*Math.PI/8), 0,
	Math.sin(-a*Math.PI/8), Math.cos(-a*Math.PI/8), 0,
	 0, 0, 1,
	 1, 0, 0,
	 0, 1, 0,
	 0, 0, 1,
	 1, 0, 0,
	 0, 1, 0,
	 0, 0, 1,
	 1, 0, 0,
	 0, Math.cos(a*Math.PI/8), -Math.sin(a*Math.PI/8),
	 0, Math.sin(a*Math.PI/8), Math.cos(a*Math.PI/8),
	 1, 0, 0,
	 0, Math.cos(a*Math.PI/8), -Math.sin(a*Math.PI/8),
	 0, Math.sin(a*Math.PI/8), Math.cos(a*Math.PI/8),
     	 1, 0, 0,
	 0, Math.cos(-a*Math.PI/6), -Math.sin(-a*Math.PI/6),
	 0, Math.sin(-a*Math.PI/6), Math.cos(-a*Math.PI/6),
	 1, 0, 0,
	 0, Math.cos(-a*Math.PI/6), -Math.sin(-a*Math.PI/6),
	 0, Math.sin(-a*Math.PI/6), Math.cos(-a*Math.PI/6),
	 1, 0, 0,
	 0, 1, 0,
	 0, 0, 1
	];

	mx.pose_statue(statue_index, bone_count, bone_centers, bone_positions, bone_rotations);
	
}
jlv
Site Admin
Posts: 14910
Joined: Fri Nov 02, 2007 5:39 am
Team: No Frills Racing
Contact:

Re: 2019-01-01 snapshot

Post by jlv »

That's right, and your gif link didn't work.
Josh Vanderhoof
Sole Proprietor
jlv@mxsimulator.com
If you email, put "MX Simulator" in the subject to make sure it gets through my spam filter.
Motodad95
Posts: 9
Joined: Tue Mar 27, 2018 4:09 pm
Team: Privateer

Re: 2019-01-01 snapshot

Post by Motodad95 »

mxcowboy14 wrote:
AtlasZoor wrote:Would sounds be possible to add? I think ambient noises could add a nice touch to the game!
this could make it to where you really can hear tom hanks in the ocean
WILLLSSSSOOONNNNNNNN
Braap677
Posts: 31
Joined: Sat Apr 08, 2017 5:39 am
Team: Privateer

Re: 2019-01-01 snapshot

Post by Braap677 »

i went to add in my editor/erode shortcut on my desktop ( -- editor) now i dont have an editor i have a free camera. what did i do wrong?
Braap677
Posts: 31
Joined: Sat Apr 08, 2017 5:39 am
Team: Privateer

Re: 2019-01-01 snapshot

Post by Braap677 »

i added the snapshot into my program files x86 in mx simulator then created a shortcut to my desktop. from there copied my short cut again then went into properties to add my -- editor. is this correct or what did i do wrong? not super computer savvy and cant remember what i did for the last snapshot.
AtlasZoor
Posts: 338
Joined: Wed Aug 02, 2017 12:51 am
Team: Atlas Trackworks
Location: Corn

Re: 2019-01-01 snapshot

Post by AtlasZoor »

Braap677 wrote:i added the snapshot into my program files x86 in mx simulator then created a shortcut to my desktop. from there copied my short cut again then went into properties to add my -- editor. is this correct or what did i do wrong? not super computer savvy and cant remember what i did for the last snapshot.
are you sure you just didn't hit tab enough lol. try cycling through it. I know it sounds stupid but spectator was added into single player for whatever reason.
Image
Braap677
Posts: 31
Joined: Sat Apr 08, 2017 5:39 am
Team: Privateer

Re: 2019-01-01 snapshot

Post by Braap677 »

AtlasZoor wrote:
Braap677 wrote:i added the snapshot into my program files x86 in mx simulator then created a shortcut to my desktop. from there copied my short cut again then went into properties to add my -- editor. is this correct or what did i do wrong? not super computer savvy and cant remember what i did for the last snapshot.
are you sure you just didn't hit tab enough lol. try cycling through it. I know it sounds stupid but spectator was added into single player for whatever reason.
i just tried to double check and still nothing. dont know what is wrong?
AtlasZoor
Posts: 338
Joined: Wed Aug 02, 2017 12:51 am
Team: Atlas Trackworks
Location: Corn

Re: 2019-01-01 snapshot

Post by AtlasZoor »

Make sure you don’t have a space after the 2 dashes it should just be this —editor
Image
Braap677
Posts: 31
Joined: Sat Apr 08, 2017 5:39 am
Team: Privateer

Re: 2019-01-01 snapshot

Post by Braap677 »

AtlasZoor wrote:Make sure you don’t have a space after the 2 dashes it should just be this —editor
Rookie mistake here. that was it. dont know how many times ive put the editor in and i overlook something that simple lol. thank you for the help atlas
AtlasZoor
Posts: 338
Joined: Wed Aug 02, 2017 12:51 am
Team: Atlas Trackworks
Location: Corn

Re: 2019-01-01 snapshot

Post by AtlasZoor »

Braap677 wrote:
AtlasZoor wrote:Make sure you don’t have a space after the 2 dashes it should just be this —editor
Rookie mistake here. that was it. dont know how many times ive put the editor in and i overlook something that simple lol. thank you for the help atlas
haha its all good.
Image
Motocrosser_44
Posts: 162
Joined: Thu Aug 06, 2015 12:22 am
Team: MGFX
Location: Massachusetts
Contact:

Re: 2019-01-01 snapshot

Post by Motocrosser_44 »

how do we get the new dynos? or are there no 19 dynos out currently? cant find any info in this thread
Albert Tranghese #44 | Tranghese Designs
Wahlamt
Posts: 7933
Joined: Mon Sep 13, 2010 3:15 pm
Team: MLG Compton
Location: Sweden
Contact:

Re: 2019-01-01 snapshot

Post by Wahlamt »

Motocrosser_44 wrote:how do we get the new dynos? or are there no 19 dynos out currently? cant find any info in this thread
Won't be any '19 dynos.
Motocrosser_44
Posts: 162
Joined: Thu Aug 06, 2015 12:22 am
Team: MGFX
Location: Massachusetts
Contact:

Re: 2019-01-01 snapshot

Post by Motocrosser_44 »

Wahlamt wrote:
Motocrosser_44 wrote:how do we get the new dynos? or are there no 19 dynos out currently? cant find any info in this thread
Won't be any '19 dynos.
at all? thats a rip and a half lol
Albert Tranghese #44 | Tranghese Designs
Cody Dawe
Crushed Dissenter
Posts: 48
Joined: Thu Jan 04, 2018 8:37 pm
Team: Next Level Racing

Re: 2019-01-01 snapshot

Post by Cody Dawe »

Im liking what im seeing so far. I do have a complaint regarding view switching. Can you make it an option to not go into free cam when your on your rider? Im someone who switches between third and first person alot and rapidly while racing and it keeps screwing me over to get back in the right view. I have not been able to run the snapshot for the series due to this.
Post Reply