Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Writing plugins

Posted on 1997-07-17
2
Medium Priority
?
286 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
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

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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 …
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.

772 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