Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Writing plugins

Posted on 1997-07-17
2
Medium Priority
?
279 Views
Last Modified: 2013-12-26
Im planning on writing a raytracer using Rayshade as a base to work from. I will try to rewrite it in C++ and add the possibility to add your own objects, textures and shading plugins. Of course I will loose portability but that is of no great concern.
What, if there is any, is the best way to do this?

Christer O.
0
Comment
Question by:m94_ols
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 3

Accepted Solution

by:
mwt earned 400 total points
ID: 1291590
1. I'm sure that you've already heard of QuickDraw 3D so why not use that as your foundation then you get all the objects, textures and shading for free and you can concentrate on your raytracer/renderer.

2. Otherwise, if you are asking how to do it in Rayshade, you will need to dig deeply into the Rayshade code to find all the places where objects, textures and other rendering code is and jam your own  plugin architecture. I suspect if you take this route it won't be pleasant and it'll turn into a software engineering project rather than a raytracer project, but good luck!

3. Otherwise, if you are asking how to write plug-in architectures; I would take a look a how Apple has done it with CDEFs and WDEFS, how Microsoft has done it with Excel and how Netscape has done it with their Navigator plug-in architecture. In general terms they all do it by calling a code-resource (for 68K) or fragment (for PPC)after locating and loading it in. Check out Metrowerks CodeWarrior which has a huge selection of examples to do 68K, PPC and FAT plug-ins.

Good luck!
0
 

Author Comment

by:m94_ols
ID: 1291591
I have thought about QuickDraw 3D but not the other options. Excellent!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Ready to get certified? Check out some courses that help you prepare for third-party exams.
The purpose of this video is to demonstrate how to set up the WordPress backend so that each page automatically generates a Mailchimp signup form in the sidebar. This will be demonstrated using a Windows 8 PC. Tools Used are Photoshop, Awesome…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Suggested Courses

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question