Page 5 of 6

Re: 2019-01-01 snapshot

Posted: Mon Jan 07, 2019 2:47 am
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.

Re: 2019-01-01 snapshot

Posted: Mon Jan 07, 2019 7:35 am
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);
	
}

Re: 2019-01-01 snapshot

Posted: Tue Jan 08, 2019 3:55 am
by jlv
That's right, and your gif link didn't work.

Re: 2019-01-01 snapshot

Posted: Wed Jan 09, 2019 2:34 pm
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

Re: 2019-01-01 snapshot

Posted: Thu Jan 10, 2019 1:18 am
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?

Re: 2019-01-01 snapshot

Posted: Thu Jan 10, 2019 1:24 am
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.

Re: 2019-01-01 snapshot

Posted: Thu Jan 10, 2019 2:24 am
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.

Re: 2019-01-01 snapshot

Posted: Thu Jan 10, 2019 3:14 am
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?

Re: 2019-01-01 snapshot

Posted: Thu Jan 10, 2019 3:49 pm
by AtlasZoor
Make sure you don’t have a space after the 2 dashes it should just be this —editor

Re: 2019-01-01 snapshot

Posted: Fri Jan 11, 2019 2:40 am
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

Re: 2019-01-01 snapshot

Posted: Fri Jan 11, 2019 2:45 am
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.

Re: 2019-01-01 snapshot

Posted: Wed Jan 16, 2019 12:32 am
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

Re: 2019-01-01 snapshot

Posted: Wed Jan 16, 2019 12:34 am
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.

Re: 2019-01-01 snapshot

Posted: Wed Jan 16, 2019 12:34 am
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

Re: 2019-01-01 snapshot

Posted: Wed Jan 16, 2019 7:10 pm
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.