Adding Images to Book

If you feel like you're up to the challenge of building your own Ages in Blender or 3ds Max, this is the place for you!

Adding Images to Book

Postby Race » Wed Dec 10, 2008 8:05 pm

Okay I got the Journal working, thanks for pointing me to that tutorial, I am a little less scared of Python now. I am comfortable enough that I wanted to go the next step, I tried to add an image to the book but alas its not there when I open the book, I see emptiness. My first question, I applied a .png file to a transparent file in Photoshop, thats the makeup of the png image I am using. Do I need to add any alpha properties to the plane in blender and do I need to add anything to the alcscript for the image? Next, in Python, I looked at some sample PageDefs to get an idea of what others did but it doesnt work for me, below is the code.

Code: Select all
BookPages = {'PakinPage': (((((PageStart + ImgStart) + 'Spirestest') + ImgEndNoLink) + AlignCenter) + PakinPage)}


Code: Select all
LinkDestinations = {'PakinPage': (None, None, None, None)}


The code for my Journal python file is below

Code: Select all
PakinPage = '<img src="Spirestest" align=center resize=no blend=alpha><pb><font size=35 face=Uru color=000000><p align=center>\nPAKIN AGE\n\n<font size=20 face=Uru color=000000><p align=left>\nWelcome to Pakin!'


I have spent the last 3 hours trying on my own, now I need some help. Thanks for all the responses on my other questions. ;)
Race
 
Posts: 51
Joined: Tue May 20, 2008 9:32 am

Re: Adding Images to Book

Postby Chacal » Wed Dec 10, 2008 9:31 pm

I seem to remember someone has posted here about it months ago. Try the search function.
Chacal


"The weak can never forgive. Forgiveness is an attribute of the strong."
-- Mahatma Gandhi
User avatar
Chacal
 
Posts: 2515
Joined: Tue Nov 06, 2007 2:45 pm
Location: Quebec, Canada

Re: Adding Images to Book

Postby boblishman » Thu Dec 11, 2008 3:15 am

I think THIS is what you are looking for ...
when it comes to Age creation ... "DOH" seems to be my middle name...
User avatar
boblishman
 
Posts: 882
Joined: Fri Oct 05, 2007 4:47 pm
Location: Spain

Re: Adding Images to Book

Postby J'Kla » Thu Dec 11, 2008 7:53 am

I spotted this the other day I've added a link into the Wiki for now it will do till we get a Wiki page written I put one in for Andy's cool tutorial on making linking books and Journals.
User avatar
J'Kla
 
Posts: 1003
Joined: Wed Feb 20, 2008 3:16 pm
Location: Geordieland UK

Re: Adding Images to Book

Postby andylegate » Fri Dec 12, 2008 6:04 am

Something that I forgot to put in my tutorial, but have now added it, is some of the settings you need to do for pics or sketches for either a journal or linking panels.

Go to your Texture Panel while you have the object with the sketch, pic, what ever, on it. Make sure that you have Mipmap and Interpol turned off. If you don't, you won't see your pic, sketch, etc. It will be blank instead. Here's a pic showing the buttons:

Image
"I'm still trying to find the plKey for Crud!"
Image
Blender Age Creation Tutorials
3DS Max Age Creation Tutorials
User avatar
andylegate
 
Posts: 2348
Joined: Mon Oct 01, 2007 7:47 am


Return to Building

Who is online

Users browsing this forum: No registered users and 5 guests

cron