WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Thread Tools Rate Thread Display Modes
Old 04-19-2009, 07:25 PM
djones1010 djones1010 is offline
Join Date: Nov 2008
Posts: 15
Any ideas on linking chess 3ds file with source code?

All I need now is to link my teams chess pieces/board with the Source Code to drive to drive the pieces.

Rapidshare Link to Source Code

Steps to get Source Code working on Vizard

Step 1:

Click these links to download the files need to compile the Source Code in Vizard.

Download files in order as they appear



Reply With Quote
Old 04-24-2009, 09:56 PM
djones1010 djones1010 is offline
Join Date: Nov 2008
Posts: 15
Need help creating chessboard

The attached file should be placed into VizardChess folder inorder to compile correctly. You can download the VizardChess folder from the link above. It creates one row of white and brown squares then stops. I help completing the rest of the board.

	def Draw(self,board,highlightSquares=[]):
		boardSize = len(board) #board should be square.  boardSize should be always 8 for chess, but I dislike "magic numbers" :)
		current_square = 0
		for r in range(boardSize):
			for c in range(boardSize):
				(screenX,screenY) = self.ConvertToScreenCoords((r,c))				
				if current_square:
					pic = viz.addTexture('brown_square.png')
					brown_square = viz.addTexQuad()
					brown_square.translate(r-5, 0, 15)
					current_square = (current_square+1)%2
					pic2 = viz.addTexture('white_square.png')
					white_square = viz.addTexQuad()
					#white_square.translate(r, 0,15)
					white_square.translate(r-5, 0, 15)
					current_square = (current_square+1)%2
			current_square = (current_square+1)%2
Attached Files
File Type: zip (2.7 KB, 2046 views)
Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting 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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Trying to integrate Source Code with Vizard djones1010 Vizard 1 03-10-2009 02:58 PM
how to use ***.remove() & how to show words directly? (change attach source code) znchb Vizard 2 10-30-2008 12:33 AM
Read file....many issues Uttama_vizard Vizard 9 07-08-2008 02:16 PM
File Management Uttama_vizard Vizard 2 07-01-2008 09:44 AM

All times are GMT -7. The time now is 11:05 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC