WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-27-2009, 09:48 AM
Uttama_vizard Uttama_vizard is offline
Member
 
Join Date: Sep 2007
Posts: 60
Handling of .jpg files

Hello,

I am facing a typical problem in texturing using .jpg files.
As an example, I am first calling an area and then trying to add a texture so as to simulate a different situation.

import vizinfo #For info box
import viztask #For wait time
import vizmat #Matrix in v2.0
import vizact
import math
viz.go()
room = viz.add('panorama.ive')
#Add a texture.
sky = viz.addTexture( 'hall1.jpg' )
#Apply the texture to the object.
room.texture( sky )

Now, I am copying the picture and pasting it to paintbrush, where I am changing the pixel dimensions of the picture and saving it as a hall1.jpg file.

Then, when I am executing my vizard file, it seems to me that the picture is coming as pasted blocks (no matter how much I increase the pixel dimensions of my picture in paintbrush) and the edges formed by pasting of the blocks is making the picture look inappropriate.

If someone can suggest me a way of overcoming this problem, it would be really great.

Thanks

Uttama
Reply With Quote
  #2  
Old 03-31-2009, 10:17 AM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,466
Can you post the .jpg you are using?
Reply With Quote
  #3  
Old 04-01-2009, 09:22 PM
Gladsomebeast Gladsomebeast is offline
Member
 
Join Date: Mar 2005
Location: Isla Vizta, CA
Posts: 397
Yeah, pictures and screenshots would help us diagnose whats wrong.

Just a guess, but it sounds like panorama.ive has some interesting texture coordinates. What does your .jpg look like when you put it on a boring old tex quad? If you are not familar with texture coordinates, check out the "Tutorial: Applying Textures."
__________________
Paul Elliott
WorldViz LLC
Reply With Quote
  #4  
Old 04-03-2009, 11:29 AM
Uttama_vizard Uttama_vizard is offline
Member
 
Join Date: Sep 2007
Posts: 60
Hello,

Surely. Yes, I am using panorama.ive. Then, I downloaded a hall.jpg and trying to add as a texture to it.

I am using the following code:
import vizinfo #For info box
import viztask #For wait time
import vizmat #Matrix in v2.0
import vizact
import math

viz.go()

#Add an object.
room = viz.add('panorama.ive')

#Add a texture.
sky = viz.addTexture( 'hall.jpg' )

#Apply the texture to the object.
room.texture( sky )

On running these lines of code, what I am getting is that there are as if two halls (seems like the picture has been split). I tried to edit its pixels in paintbrush, but, it does not work out.

I am enclosing the hall.jpg file.

Thanks for your time.

Uttama
Attached Thumbnails
Click image for larger version

Name:	hall.jpg
Views:	512
Size:	46.1 KB
ID:	307  
Reply With Quote
  #5  
Old 04-06-2009, 04:20 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,466
I don't quite understand what you are trying to accomplish. Do you want this one image to wrap around the whole model or are you trying to eliminate the seams?
Reply With Quote
  #6  
Old 04-07-2009, 01:06 PM
Uttama_vizard Uttama_vizard is offline
Member
 
Join Date: Sep 2007
Posts: 60
Hello,

I am trying to wrap the jpeg onto the panorama.ive and at the same time remove the seams.

In fact, what I want is, to obtain a different social scenario. But, when the picture has seams, it does not look proper.

Are the seams due to jpeg pixel size (of the original picture)? Suggestions would be really helpful. Is it possible to overcome this problem using vizard?


Thanks

Uttams
Reply With Quote
  #7  
Old 04-10-2009, 02:37 PM
Jeff Jeff is offline
WorldViz Team Member
 
Join Date: Aug 2008
Posts: 2,466
If you want to create your own panorama, instead of using the panorama.ive model and applying a texture to it take a look at the Vizard tutorial: 360 panoramas. You need to create an environment map made of six images and apply this map as a texture to a dome created with Vizard's built in skydome plug-in.
Reply With Quote
Reply

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
How to edit the skin tones of the complete characters' cfg files? vEsotu Vizard 3 09-23-2008 12:07 PM
Which software can be used to edit .cfg (CAL3D) files luakt Vizard 4 09-12-2008 07:18 AM
Error when playing wav files...? vjonshih Vizard 1 05-23-2005 12:21 PM
loading large wav files in vizard tommahhh Vizard 1 05-16-2005 03:23 PM
Including Files that Include Other Files vjosh Vizard 1 09-21-2004 04:44 PM


All times are GMT -7. The time now is 04:34 AM.


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