Forum: Vizard
06-07-2011, 05:02 AM
|
Replies: 8
Views: 10,752
Hi Jeff,
Further to my last post I've done a...
Hi Jeff,
Further to my last post I've done a bit of experimenting with the code and the problem appears with this part of the coding that makes the road infinite
def addRoadr():
global...
|
Forum: Vizard
06-07-2011, 02:08 AM
|
Replies: 8
Views: 10,752
Hi Jeff,
thanks for that; yes, that's the...
Hi Jeff,
thanks for that; yes, that's the idea but it's a follow on from another experiment so it has to have an identical set up as before, ie the surface and position of the road, the temporal...
|
Forum: Vizard
05-31-2011, 01:55 AM
|
Replies: 0
Views: 6,126
assign object to a viewpoint
Hi,
I want to assign two different objects to two different viewpoints and have tried various combinations gleaned from the tutorials and other forum entries (see below); however I've only acheived...
|
Forum: Vizard
05-24-2011, 03:54 AM
|
Replies: 8
Views: 10,752
Hi Jeff,
yes I tried a number of ways of...
Hi Jeff,
yes I tried a number of ways of doing that (see below) but the best that I've succeeded in is having the two quads appear side by side in both of the viewpoints, rather than one in each, ...
|
Forum: Vizard
05-17-2011, 02:31 AM
|
Replies: 8
Views: 10,752
Hi Jeff,
many thanks for that; but when I...
Hi Jeff,
many thanks for that; but when I try and load my .png file using this code, it fails to load it (similarly for .jpg files as well), also the markings on the texture I'm using need to...
|
Forum: Vizard
05-11-2011, 05:15 AM
|
Replies: 8
Views: 10,752
I've tried to create another window using two...
I've tried to create another window using two different methods (from both examples in the tutorials and other forum posts) and then assign one of the quads to the left window and the other to the...
|
Forum: Vizard
05-10-2011, 04:11 AM
|
Replies: 8
Views: 10,752
moving at different speeds
Hi,
I've got two rolling roads side by side but I want them to move at different speeds to each other as a type of comparison task, at the moment I can get them to go at the same speeds as each...
|
Forum: Vizard
05-05-2011, 04:58 AM
|
Replies: 4
Views: 10,531
Hi Jeff,
thanks for that, I've decided to use...
Hi Jeff,
thanks for that, I've decided to use to quads and apply the textures to them instead. I'm trying to code for the textures in these two quads to both move at independent speeds in a downward...
|
Forum: Vizard
05-04-2011, 06:15 AM
|
Replies: 4
Views: 10,531
How to draw a circle?
Hi,
I'm trying to draw two flat circles side by side on which I need to put textures on (a sphere is no good due to the curvature). Is there a simple command to create a circle in Vizard (I have...
|
Forum: Vizard
05-25-2010, 02:46 AM
|
Replies: 1
Views: 9,132
random coding
Hi,
I want to have some code in my driving simulation that randomly changes the gain of the accelerator, rather like when you're out driving and you go up and down hills and inclines in the road....
|
Forum: Vizard
05-20-2010, 04:03 AM
|
Replies: 1
Views: 10,340
Having carried out some testing on the code it...
Having carried out some testing on the code it seems that the program isn't changing the mph coding to reflect the associated change in accelerator gain.
Is the code in the wrong postition? Or...
|
Forum: Vizard
05-19-2010, 04:24 AM
|
Replies: 1
Views: 10,340
random speed and associated coding
Hi there,
I want the code to sample a random accelerator gain from a predetermined list, but when the gain changes, the coding for the indicated speed in mph also has to change, to give the...
|
Forum: Vizard
07-10-2009, 04:19 AM
|
Replies: 1
Views: 8,912
still problem with data from .exe file
Hi
I'm still having problems with data being output from a .exe file - I read the post as recommended but it was using exactly the same code as I've tried. This is the code I'm using - it works...
|
Forum: Vizard
07-01-2009, 06:05 AM
|
Replies: 1
Views: 11,652
|
Forum: Vizard
06-25-2009, 03:49 AM
|
Replies: 4
Views: 10,854
|
Forum: Vizard
06-24-2009, 06:31 AM
|
Replies: 4
Views: 10,854
I tried using this code
def...
I tried using this code
def UpdateJoystick1():
#Get the joystick position
x,y,z = joy.getPosition()
#Move the viewpoint forward/backward based on y-axis value
if abs(y)...
|
Forum: Vizard
06-22-2009, 04:22 AM
|
Replies: 4
Views: 10,854
changing the gain of a joystick during a program
Hi,
I want to change the gain of the joystick by altering the scalar constant (in this case MOVE_SPEED)- so effectively the speed will alter - at a certain point in my program (22secs in). Here's...
|
Forum: Vizard
06-17-2009, 03:14 AM
|
Replies: 3
Views: 10,421
|
Forum: Vizard
06-16-2009, 04:56 AM
|
Replies: 3
Views: 10,421
Cheers Jeff - you're a star! I have got another...
Cheers Jeff - you're a star! I have got another problem though - all of a sudden the output data will not write to the specified file - it was fine and then suddenly stopped working. The code I have...
|
Forum: Vizard
06-15-2009, 06:00 AM
|
Replies: 3
Views: 10,421
Timed changing message on screen
Hi,
I'm trying to get a 'stop' message appear on the screen 10 seconds into the program, which waits for a second and then changes to 'go'. I've had various attempts and whilst I can get the...
|
Forum: Vizard
03-03-2009, 01:37 AM
|
Replies: 2
Views: 6,412
|
Forum: Vizard
03-02-2009, 06:06 AM
|
Replies: 2
Views: 6,412
running an executable for a specific time period
Hi there,
I've got an executable of my program that performs a number of different operations and eventually outputs data to a file. How would I go about inserting code into the program so that the...
|
Forum: Vizard
01-12-2009, 04:23 AM
|
Replies: 8
Views: 11,937
|
Forum: Vizard
01-12-2009, 02:20 AM
|
Replies: 8
Views: 11,937
|
Forum: Vizard
01-09-2009, 03:59 AM
|
Replies: 8
Views: 11,937
Hi Jeff,
thanks for that - unfortunately it...
Hi Jeff,
thanks for that - unfortunately it doesn't update and I constantly get 0.0km/hr on the screen - even though its moving along the road. I tried inserting joy.getPosition() in place of...
|